Shared personal knowledge graph with MCP tools for reading, writing, and syncing information across supported clients and sources.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent ā or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag ā we're steadily working through the catalog.
š” Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Cosmos MCP.
The teampolarity/cosmos-mcp MCP server gives MCP-capable applications access to a shared Cosmos knowledge graph. The graph is associated with a user account and can be exported as a portable .polarity file. Multiple clients can read from and write to the same graph instead of maintaining separate agent-specific context.
The server exposes eleven tools. Read operations identify the bound user and scopes, return graph data at different entity levels, export the complete personal graph, or answer natural-language questions using graph contents. Write operations accept observations, events, preferences, full conversation turns, short location-based messages, check-ins, future presence declarations, and reconstructed work-hour records.
Use this server when context needs to follow a user between supported MCP clients such as Claude Desktop, Cursor, Codex, Zed, or Continue. It is also relevant when existing personal data should become graph source material rather than remain isolated in individual applications.
The MCP client runs the package through npx and communicates with the Cosmos service using an account key. A client can submit a freeform observation, a typed event or preference, or an entire user-assistant exchange. The latter lets Cosmos extract durable observations from a conversation in one request.
Read tools expose the resulting graph through API-backed operations. polarity_get_graph can scope its view to the user, Cosmos, or Polarity entities, while polarity_ask sends a natural-language question for synthesis over the graph. polarity_export returns the full graph in the polarity/v1 JSON format.
The package also includes source-specific CLI commands. On macOS, iMessage data is read locally from the Messages database after Full Disk Access is granted; only normalized conversation turns are sent to the graph. Shell-history sync reads local shell history with a byte-offset watermark, filters trivial commands and consecutive duplicates, and uploads each sync window as a source page. Claude Code session transcripts under ~/.claude/projects/ can also be synchronized. Notion uses OAuth and Obsidian uses a community plugin.
The documented MCP command is:
Authentication can be provisioned through the Cosmos website and stored in the macOS system keychain, or supplied manually with a pmk_ key. The init command opens a browser-based sign-in flow and stores the token at ~/.config/cosmos-mcp/token. For CI, set COSMOS_TOKEN; this takes precedence over the keychain. The install-handler provisioning flow is macOS-only.
The repository also documents a shell installer that configures common clients. On macOS, that installer can register the cosmos-mcp:// scheme and install Cosmos Sync for background source synchronization. Linux and Windows receive the MCP server path only.
The teampolarity/cosmos-mcp MCP server includes these supported capabilities:
polarity_whoami.polarity_export and polarity_get_graph.polarity_ask.Local source access depends on the operating system and permissions. iMessage synchronization is macOS-only and requires Full Disk Access for the application running the CLI. The automatic URL-handler provisioning flow is also macOS-only. Linux and Windows support the MCP server path, but the excerpt does not document equivalent local-source setup for those platforms.
Notion requires connecting through the Cosmos connectors page, and Obsidian requires the Polarity community plugin. The server is one write path into Cosmos; source pages may also be supplied by other integrations or the direct API. Re-synchronization skips unchanged pages, and iMessage synchronization uses an incremental watermark after its initial window.
Factual signals from GitHub, npm, and our automated checks ā not a rating.
No reviews yet ā be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/teampolarity-cosmos-mcp)<a href="https://allmcps.com/mcp/teampolarity-cosmos-mcp"><img src="https://allmcps.com/api/badge/teampolarity-cosmos-mcp?style=directory" alt="Cosmos MCP on AllMCPs" /></a>