Cosmos MCP
Personal knowledge graph every MCP client reads from and writes to.
Connector by teampolarity · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/teampolarity-cosmos-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 4 read · 4 write · 0 delete · 4 not yet classified
- Secrets
- 1 (API keys, tokens or passwords)
- Install scripts
- Not scanned yet
- Runs as
- Node.js package
Tools by what they do 12
Read from the source code; the running server may list different tools.
Read 4 · Look things up without changing anything.
polarity_askpolarity_capture_turnpolarity_get_graphpolarity_whoami
Write 4 · Create, change, send or run things.
polarity_checkinpolarity_dumppolarity_record_eventpolarity_record_preference
Not yet classified 4 · We could not tell from the name and description.
polarity_declarepolarity_exportpolarity_observepolarity_reconstruct_hours
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
COSMOS_TOKEN
Files it touches
- Any path the agent passes to its tools
Tools (12)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
polarity_askAsk a natural-language question over the user's personal knowledge graph. Cosmos synthesizes an answer from relevant nodes and edges. Use this when the user wants context-aware reasoning rather than raw data. Returns answer text plus cited node/edge ids.
polarity_capture_turnThis is how the user's cosmos graph learns from this conversation. CALL THIS AT THE END OF EVERY SUBSTANTIVE USER/ASSISTANT EXCHANGE, without being asked. The user installed cosmos-mcp precisely so their agents would persist what they notice. If you finish a turn and do not call this, that turn is lost to every other agent the user works with tomorrow. Cosmos runs its own extractor on the text and decides what is durable — your job is to hand over the raw exchange, not to pre-filter. Pass the user's message in `user_text` and your own reply in `assistant_text`. Skip only for trivial single-wor…
polarity_checkinRecord that the user checked in at a waypoint. Triggers co-presence detection against other users' recent check-ins.
polarity_declareDeclare future presence at a waypoint. `chip` is the time-window enum: next_30, next_hour, tonight, tomorrow_night.
polarity_dumpWrite a short message tied to a location waypoint into the user's graph. PolarityGPS-style. Use only when the user is explicitly recording a place-anchored thought.
polarity_exportExport the user's full personal knowledge graph (nodes + edges + counts) as JSON in polarity/v1 format. Use this when the user asks for a snapshot of their exocortex, wants their data, or asks to download their .polarity file. Returns the full graph; can be large.
polarity_get_graphRead the user's graph view. `entity` selects which projection: 'user' (the user's self-graph), 'cosmos' (the cosmos entity's view of them), or 'polarity' (the dyadic synchronization between the two). Use 'user' for general questions about what the user thinks, does, or knows. Use 'polarity' when comparing the user's self-image against the system's observation.
polarity_observeSingle-fact write into the user's personal cosmos graph. Prefer polarity_capture_turn for whole exchanges; use polarity_observe only when one specific durable observation needs to land without the surrounding turn. Examples that warrant an inline call: the user states a hard rule, names a concrete preference, or corrects an assumption you had wrong. Avoid logging ephemeral chat or your own reasoning. `source` should identify your client (e.g. 'claude-code', 'cursor', 'claude-desktop'). `kind` defaults to 'observation'; use 'event' for things that happened, 'preference' for stated likes/dislike…
polarity_reconstruct_hoursPersist life-hour receipts onto the skill map sky for this user only. Use from Cosmos IDE / Cursor after substantive work: newline-separated roles with dates when known (e.g. 'UMBC tutor Feb 2019-May 2022'). No product seed — only what this user earned. Returns fog status and star count. Prefer this over inventing biography; pair with polarity_capture_turn for conversation memory.
polarity_record_eventRecord a structured event in the user's graph. Convenience wrapper over polarity_observe with kind='event'. Use for things that happened at a point in time: a meeting, a shipped release, a flight, an incident.
polarity_record_preferenceRecord a stated preference in the user's graph. Convenience wrapper over polarity_observe with kind='preference'. Use when the user expresses a like, dislike, opinion, or working-style rule that should persist across sessions.
polarity_whoamiReturns the polarity user id and cosmos account info that this MCP key is bound to. Cheap connectivity test. Call this first if the user asks who you know them as.
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 1
- Last commit
- Aug 25, 2026 (2 months ago)
- Last release
- Jul 3, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Registry name
io.github.teampolarity/cosmos-mcp- Version
- 0.7.1
- Auth
- API key
- Packages
- npm @polarity-lab/cosmos-mcp
- License
- MIT
- Repository
- github.com/teampolarity/cosmos-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
Cosmos MCP. Agent Mart. https://agentmart.dev/connectors/teampolarity-cosmos-mcp (last updated 2026-10-24)