Developer
The current version of our Model Context Protocol is experimental. It is in Beta and is subject to change. You can expect more functionality to be added over time.
Build your own app, agent, or bot and integrate it with a Capacities space by implementing a custom MCP client using the Model Context Protocol (MCP) open standard. We host a server that provides secure access to a selected Capacities space via OAuth 2.1 (including PKCE, Dynamic Client Registration, and refresh tokens).
You can connect the Capacities MCP server to all AI tools that support the MCP protocol and connection via oAuth.
searchSearches across your space via keywords. Results include:
Search uses both full text search and semantic search to find and rank the best results.
Example prompt: "Find all Painting objects related to Claude Monet."
getObjectContentRetrieves all content and properties from a specific object in markdown format.
Example prompt: "Read my highlights on The Happiness Hypothesis in Capacities and summarize the most important concepts."
createObjectLinkGenerates a valid URL to access a specific object.
Example prompt: "Give me a link to my Cheesecake recipe in Capacities."
saveToDailyNoteStores text within today's daily note.
Example prompt: "Send your conclusions about why folder structures don't work to my Capacities daily note."
If you are building a custom implementation or a private tool and would like to integrate it with our MCP server, please follow this guide:
This is the resource your token must be valid for.
https://api.capacities.io/mcp/mcpIt tells you which authorization server to use.
https://api.capacities.io/.well-known/oauth-protected-resource/mcpWWW-Authenticate: Bearer resource_metadata="..."resourceauthorization_serversYou need endpoints and capabilities before auth starts.
https://api.capacities.io/.well-known/oauth-authorization-serverauthorization_endpointtoken_endpointregistration_endpointcode_challenge_methods_supported includes S256 (SHA-256)PKCE protects public clients from code interception.
Before redirect:
code_verifiercode_challenge using SHA-256 (S256)statecode_verifier and state securely until callbackDynamic Client Registration (DCR) gives your app a valid client_id; web-based (non-native) clients also receive a client_secret.
POST to registration_endpoint with:
client_nameredirect_urisgrant_types: authorization_code, refresh_tokenresponse_types: codetoken_endpoint_auth_method:
noneclient_secret_basic or client_secret_postPersist:
client_idclient_secret (web-based clients only, if returned)This is the user consent and authorization step.
Redirect users to authorization_endpoint with:
response_type=codeclient_idredirect_uriscope (request only needed scopes: mcp:read, mcp:write)statecode_challengecode_challenge_method=S256resource=https://api.capacities.io/mcpCallback validation prevents Cross-Site Request Forgery (CSRF) and flow confusion.
On callback:
state exactlycodeerror exists, stop and surface provider errorThis returns the access token used for MCP calls.
POST to token_endpoint with:
grant_type=authorization_codecoderedirect_uricode_verifierclient_idclient_secret (non-native/web-based clients only)Persist securely:
access_tokenrefresh_tokenTokens are sent as standard OAuth bearer credentials.
Authorization: Bearer <access_token>Refresh keeps sessions working without constant re-login.
Before token expiry:
grant_type=refresh_tokeninvalid_grant, require full re-authOAuth integrations fail safely only when these baseline controls are in place.
state on every auth responseTo maintain a secure environment for all users, we do not allow arbitrary redirect URIs. If you are developing a custom client, your application's Redirect URI must be manually verified by a member of our team before the OAuth flow will function.
To register your client, email [email protected] with:
Once our team has reviewed your request and updated our settings, we will notify you so you can complete your integration.
The current version of the Capacities MCP Server only includes a small set of tools. We think this makes the MCP already very powerful:
Nevertheless, we see great potential in extending the MCP server capabilities.
We do not envision the MCP to be a tool to "automate knowledge work", but rather a tool to help you to be more productive and creative.
The Capacities MCP server will be developed in conjunction with our Public API. But we'll fine-tune API routes for AI usage so the Capacities MCP server a powerful companion when working with AI so it simply works.
If the official MCP is not enough for your needs, you'll be able to derive your own MCP server from our Public API.
Ask a question! - The Docs Assistant knows everything about the documentation, and the ideas and feature requests from other users.
Create a ticket on our feedback board. - Let us know if you have an idea for a feature, improvement or think there is something missing.
Request additions to the documentation. - If your questions are not getting answered, let us know and we will extend the documentation.