Connect your favorite AI assistant to Aidentâs full platform â 1000+ integrations, playbooks, templates, and dashboard â through the Model Context Protocol (MCP).Documentation Index
Fetch the complete documentation index at: https://docs.aident.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Active Aident account
- Connected integrations (Settings â Integrations)
- An MCP-compatible client
Step 1: Add Server URL
All MCP clients use the same server URL:Claude Code
Claude Code
Run in your terminal:Or add to
~/.claude.json:Claude Desktop
Claude Desktop
Add to your config file:Or on Pro/Max/Team/Enterprise plans: Settings â Connectors â Add and enter
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
https://app.aident.ai/api/mcp.Cursor IDE
Cursor IDE
Add to
.cursor/mcp.json in your project root:VS Code (Copilot)
VS Code (Copilot)
Add to
.vscode/mcp.json in your project root:Windsurf
Windsurf
Add to
~/.codeium/windsurf/mcp_config.json:Codex
Codex
Run in your terminal:Or add to Verify the server is configured:
~/.codex/config.toml (or .codex/config.toml for a trusted project):Gemini CLI
Gemini CLI
Add to
~/.gemini/settings.json:Other Clients
Other Clients
Any MCP-compatible client (Goose, Kiro, OpenCode, Antigravity, Factory, etc.) can connect using the server URL
https://app.aident.ai/api/mcp. Refer to your clientâs documentation for where to add MCP server configurations.Step 2: Authenticate
On first use, your MCP client will automatically:- Discover Aidentâs OAuth endpoints
- Open your browser for login (Google OAuth or magic link)
- Store your access token locally
Step 3: Verify Connection
In your MCP client, try asking your AI assistant to use Aident tools. You should see Aident tools available across auth, skills, integrations, playbooks, templates, and dashboard.Switching Accounts
To log out or switch to a different Aident account, use theauth_logout tool, then reconnect to trigger a new sign-in flow.
Troubleshooting
Authentication Issues
If the OAuth flow doesnât start automatically:- Restart your MCP client
- Verify URL is exactly
https://app.aident.ai/api/mcp - Check that your browser can reach app.aident.ai
âNo OAuth flow is in progressâ when running complete_authentication
Some MCP clients (notably Claude Code) expose two complementary tools â authenticate (start the flow) and complete_authentication (finish it by pasting the callback URL). The PKCE code_verifier produced by authenticate is held in the clientâs process memory. If that process restarts between the two tool calls (which can happen between message turns on long-lived agent sessions), the verifier is lost and complete_authentication returns No OAuth flow is in progress.
Reliable workarounds:
- Open the authorization URL immediately when prompted. The local loopback callback listener catches the redirect inside the same process, completing the flow before any state can be lost. This is the path that works without ever calling
complete_authentication. - If you must paste back the callback URL, run
authenticateandcomplete_authenticationback-to-back within the same agent turn.
WWW-Authenticate: Bearer resource_metadata=⌠header on 401 responses, so MCP clients can rediscover the OAuth endpoints automatically.
Token TTLs
- Access token: 24 hours
- Refresh token: 30 days (rotated on each refresh)
- Authorization code: 10 minutes
âSkill requires unauthenticated integrationsâ
The skill needs integrations you havenât connected:- Run
integration_statusto see whatâs connected - Run
integration_connectwith the missing integration - Authorize in browser
- Retry the operation
Connection Timeout
- Check firewall allows outbound HTTPS to app.aident.ai
- Configure proxy in MCP client if needed
- Try disconnecting VPN temporarily
Tools Not Appearing
- Restart MCP client
- Verify URL in configuration file
- Re-authenticate if token expired (client should handle automatically)
Managing Your Connection
Revoking Access
- Go to Settings â Integrations â MCP
- Click âRevoke Accessâ
- All MCP connections will stop working immediately
- Re-authenticate to reconnect