Agentkit MCP server
Connect Claude, ChatGPT or your coding assistant to the hosted Agentkit MCP server with OAuth. Choose permissions and manage access to your workspace.
Connect your assistant to https://agentkit.ai/api/mcp. The hosted server works on every Agentkit plan, including Free. Your client connects over HTTPS and asks you to approve access in the browser.
Connect your client
| Client | Setup |
|---|---|
| Claude | In Settings, open Connectors and add a custom connector named Agentkit with the hosted URL. |
| ChatGPT | In the app settings, enable developer mode if needed and create a custom app. Enter the hosted URL and select OAuth. Your ChatGPT workspace must allow custom apps. |
| Claude Code | Run claude mcp add --transport http agentkit https://agentkit.ai/api/mcp. Open /mcp in Claude Code and authenticate the Agentkit connection. |
| Codex | Run codex mcp add agentkit --url https://agentkit.ai/api/mcp and then codex mcp login agentkit. |
| Cursor | In .cursor/mcp.json, add "agentkit": {"url": "https://agentkit.ai/api/mcp"} under mcpServers. |
| VS Code | In .vscode/mcp.json, add "agentkit": {"type": "http", "url": "https://agentkit.ai/api/mcp"} under servers. Start the server and sign in. |
| Windsurf | In your MCP configuration, add "agentkit": {"serverUrl": "https://agentkit.ai/api/mcp"} under mcpServers. |
If you already have the Agentkit CLI, run agentkit mcp add <client>. The client IDs are claude-code, codex, cursor, vscode, windsurf and claude-desktop. For Claude Desktop, the command prints instructions for adding a custom connector.
Follow the browser sign-in prompt, choose your workspace, and review the permissions. Try asking your assistant to “List my Agentkit agents.”
Permissions
A connection grants access to one workspace. Read and write are preselected on the consent screen. Your client receives the tools that your grant allows. Tool results, including conversation transcripts, are visible to the assistant's provider.
| Scope | Access | Who can approve |
|---|---|---|
read | Inspect workspace identity, agents, channels, contacts, leads, sources, settings, training status and individual conversations. Required to connect. | Workspace member |
write | Edit agents and knowledge, change settings, start training and send chat messages. | Workspace member |
delete | Permanently delete knowledge sources. Off by default. | Member with the settings.manage permission |
export | Export transcripts in bulk, up to 20 conversations per page. Off by default. | Member with the settings.manage permission |
Grants expire 90 days after consent. To disconnect a client sooner, open Connected apps in the workspace and revoke its grant. The next request requires a new authorization.
Tools
The table lists the hosted tools and the permission each tool requires.
| Permission | Tool | What it does |
|---|---|---|
| Read | whoami | Show workspace identity and credential scopes. |
| Read | agents_list | List agents in the workspace. |
| Read | agents_get | Inspect one agent. |
| Read | channels_list | List an agent's channels and their status. |
| Read | contacts_list | List contacts. |
| Read | leads_list | List leads, optionally filtered by date. |
| Read | conversations_list | List conversations across Widget, API, Playground, Instagram, Center Stage and Help Page. |
| Read | conversations_get | Read one conversation, including its messages. |
| Read | sources_list | List knowledge sources and their IDs. |
| Read | sources_get | Read stored source content, including Q&A questions and answers. |
| Read | settings_ai_get | Read the model and instructions. |
| Read | settings_design_get | Read the widget design. |
| Read | settings_security_get | Read allowed domains and message limits. |
| Read | settings_notifications_get | Read notification preferences. |
| Read | settings_training_get | Read knowledge sync settings. |
| Read | training_status | Check progress without spending training credits. |
| Write | agents_create | Create an agent. |
| Write | agents_update | Update an agent's name or URL. |
| Write | sources_add_text | Add a text source. |
| Write | sources_add_qna | Add questions that share an answer. |
| Write | sources_add_url | Queue a web page for training. |
| Write | sources_update | Edit a source in place, keeping its ID. |
| Write | settings_ai_update | Change the model, preset or prompt. |
| Write | settings_instructions_update | Replace instructions and select the custom preset. |
| Write | settings_design_update | Change the widget design. |
| Write | settings_security_update | Change privacy, domains or message limits. |
| Write | settings_notifications_update | Update notification preferences. |
| Write | settings_training_update | Turn automatic retraining on or off. |
| Write | actions_toggle | Enable or disable an existing custom API action. |
| Write | train_start | Re-crawl web sources using training credits. |
| Write | chat | Send a message, store the conversation and spend message credits. |
Sensitive (delete) | sources_delete | Permanently delete one knowledge source. |
Sensitive (export) | conversations_export | Export a page of full transcripts. |
Local stdio server
Use --local when your client needs to launch a process on your machine. Install the CLI and sign in first. The process reads your saved credential or AGENTKIT_API_KEY and still needs network access to the Agentkit API.
agentkit auth login --browser agentkit mcp add cursor --local --agent <agent-id>
Local stdio starts read-only. Add --allow-writes for write tools, --allow-delete for deletion or --allow-export for transcript export. The credential must also have the corresponding scope. Use --agent to limit the process to selected agents. Agent creation requires workspace-wide access. Pass --force to replace an existing registration.
Troubleshooting
If a hosted tool is missing, check the grant in Connected apps. Reconnect and approve the required scope. For local stdio, check both the launch flags and agentkit auth status. If the client cannot start the local process, check that agentkit-mcp is on its PATH.
For scripts and CI, see the CLI setup guide.