BTT As MCP Provider
BetterTouchTool can expose its configured AI assistants to external MCP clients such as Codex or Claude Code.
This is controlled by the setting Enable BetterTouchTool MCP Server For External AI Clients (BTTExternalMCPServerEnabled) in BTT's MCP settings. The server listens on localhost only.
Endpoint
The HTTP MCP endpoint is:
http://127.0.0.1:64832/mcp
Port 64832 is the default. You can change it with BTTExternalMCPServerPort. For OpenCode remote MCP, BTT also provides:
http://127.0.0.1:64832/sse
Recommended Session Flow
External clients should use assistant-session mode:
- Call
list_btt_assistants. - Pick the assistant you want to use.
- Call
activate_btt_assistant. - Call
load_bettertouchtool_assistant_instructions. - Follow the returned instructions for the rest of the session.
After activation, the visible tools are filtered to the selected assistant's skills and permissions. Direct MCP tools can be called directly. Other allowed BTT helper functions can be called through run_javascript using the ai object.