MCP connections
Caplo can expose a hosted MCP server so external AI clients such as Cursor and Claude Code can use repository lookup and repository write tools against your workspace data.
Supported flow
The hosted MCP server uses:
- the public MCP URL
https://app.caplo.ai/mcp - browser-based Supabase OAuth
- a required workspace choice during consent
- refresh tokens managed by the MCP client
Connect a client
- Add
https://app.caplo.ai/mcpin your MCP client. - Start the connection flow from the client.
- Sign in to Caplo in the browser if needed.
- Review the client name and requested scopes.
- Choose the workspace this connection should use.
- Approve the connection.
After approval, the MCP client reconnects to Caplo and can call the hosted tools.
Workspace binding
Each MCP connection is bound to exactly one workspace.
- The workspace is chosen during browser consent.
- The connection stays bound to that workspace until you revoke access.
- MCP requests do not let the client choose a different workspace per tool call.
This keeps repository access predictable and aligned with Caplo's workspace-scoped security model.
Switch to another workspace
To use another workspace for the same MCP client:
- Open Settings > MCP connections in Caplo.
- Revoke the existing authorization.
- Reconnect from Cursor or Claude Code.
- Choose the new workspace during consent.
Caplo does not support an inline “switch workspace” action for an existing MCP authorization.
Available tools
The hosted MCP server exposes a small repository-focused surface:
- Search entities
- Load direct relations for repository entities
- Load a graph neighborhood around selected entities
- Create and update repository entities
- Create and update repository relations
- Inspect entity-type and relation-type property definitions before writing
The property-definition tools let an MCP client discover the effective writable fields for the
current workspace, including built-in properties and workspace-specific custom properties.
When list_entity_type_properties omits entityType, it returns the entity types currently enabled
for that workspace.
The stable public MCP tool names are:
search_entitieslist_entity_relationssearch_graph_neighborhoodcreate_entityupdate_entitycreate_relationupdate_relationlist_entity_type_propertieslist_relation_type_properties
Each tool returns structured JSON. MCP clients that support machine-readable tool results can read that JSON directly instead of parsing plain text.
Manage existing connections
Open Settings > MCP connections to review:
- which MCP clients currently have access
- which workspace each connection is bound to
- the scopes granted to each client
- the revoke action for each authorization
Troubleshooting
The client asks me to authenticate again
That usually means the client needs a fresh access token or refresh failed. Reconnect through the normal browser flow.
I need a different workspace
Revoke the authorization in Caplo settings, then reconnect and choose the correct workspace.
The connection works in Caplo but not in the MCP client
Check that:
- you used the
/mcpURL - the browser consent completed successfully
- the selected workspace contains the repository data you expect
- the MCP client finished reconnecting after authorization