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

ClientSetup
ClaudeIn Settings, open Connectors and add a custom connector named Agentkit with the hosted URL.
ChatGPTIn 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 CodeRun claude mcp add --transport http agentkit https://agentkit.ai/api/mcp. Open /mcp in Claude Code and authenticate the Agentkit connection.
CodexRun codex mcp add agentkit --url https://agentkit.ai/api/mcp and then codex mcp login agentkit.
CursorIn .cursor/mcp.json, add "agentkit": {"url": "https://agentkit.ai/api/mcp"} under mcpServers.
VS CodeIn .vscode/mcp.json, add "agentkit": {"type": "http", "url": "https://agentkit.ai/api/mcp"} under servers. Start the server and sign in.
WindsurfIn 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.

ScopeAccessWho can approve
readInspect workspace identity, agents, channels, contacts, leads, sources, settings, training status and individual conversations. Required to connect.Workspace member
writeEdit agents and knowledge, change settings, start training and send chat messages.Workspace member
deletePermanently delete knowledge sources. Off by default.Member with the settings.manage permission
exportExport 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.

PermissionToolWhat it does
ReadwhoamiShow workspace identity and credential scopes.
Readagents_listList agents in the workspace.
Readagents_getInspect one agent.
Readchannels_listList an agent's channels and their status.
Readcontacts_listList contacts.
Readleads_listList leads, optionally filtered by date.
Readconversations_listList conversations across Widget, API, Playground, Instagram, Center Stage and Help Page.
Readconversations_getRead one conversation, including its messages.
Readsources_listList knowledge sources and their IDs.
Readsources_getRead stored source content, including Q&A questions and answers.
Readsettings_ai_getRead the model and instructions.
Readsettings_design_getRead the widget design.
Readsettings_security_getRead allowed domains and message limits.
Readsettings_notifications_getRead notification preferences.
Readsettings_training_getRead knowledge sync settings.
Readtraining_statusCheck progress without spending training credits.
Writeagents_createCreate an agent.
Writeagents_updateUpdate an agent's name or URL.
Writesources_add_textAdd a text source.
Writesources_add_qnaAdd questions that share an answer.
Writesources_add_urlQueue a web page for training.
Writesources_updateEdit a source in place, keeping its ID.
Writesettings_ai_updateChange the model, preset or prompt.
Writesettings_instructions_updateReplace instructions and select the custom preset.
Writesettings_design_updateChange the widget design.
Writesettings_security_updateChange privacy, domains or message limits.
Writesettings_notifications_updateUpdate notification preferences.
Writesettings_training_updateTurn automatic retraining on or off.
Writeactions_toggleEnable or disable an existing custom API action.
Writetrain_startRe-crawl web sources using training credits.
WritechatSend a message, store the conversation and spend message credits.
Sensitive (delete)sources_deletePermanently delete one knowledge source.
Sensitive (export)conversations_exportExport 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.