Setup with OAuth (Recommended)
The fastest way to connect — no token needed.Authenticate
Inside Claude Code, run the
/mcp command. Select Authenticate for the Trilo server — this will open your browser to authorize access to your Trilo account.Setup with PAT (Alternative)
If you prefer a Personal Access Token instead of OAuth:Create a token
In Trilo, go to Profile Settings > API > Create Token. Select the scopes you need (
mcp:read, mcp:write) and copy the token.Add the MCP server
Option A — CLI command:Option B — Config file (You can also use
~/.claude.json):.mcp.json in your project root to share the config with your team (supports environment variable expansion like ${TRILO_PAT}).Options
You can append query parameters to the MCP URL for additional control:| Parameter | Description | Example |
|---|---|---|
workspace_id | Restrict to a specific workspace | https://api.trilo.chat/mcp?workspace_id=abc-123 |
read_only | Force read-only mode | https://api.trilo.chat/mcp?read_only=true |
Troubleshooting
OAuth browser doesn't open
OAuth browser doesn't open
Make sure you run
/mcp inside Claude Code to trigger the authentication flow. If the browser still doesn’t open, check that you have a default browser configured.401 Unauthorized (PAT)
401 Unauthorized (PAT)
Tools not appearing
Tools not appearing
Try restarting Claude Code. Run
/mcp to check the server status. Also verify the URL is exactly https://api.trilo.chat/mcp with no trailing slash.Session expired (error -32002)
Session expired (error -32002)
MCP sessions expire after 30 minutes of inactivity. Claude Code usually reconnects automatically. If not, run
/mcp and re-authenticate.