Cosmos MCP
Personal knowledge graph every MCP client reads from and writes to. Portable across…
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.7.1
- Listing updated
- 5 days ago
About Cosmos MCP
Cosmos MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Personal knowledge graph every MCP client reads from and writes to. Portable across agents.
Install
Run in a terminal
claude mcp add cosmos-mcp --env COSMOS_TOKEN='<COSMOS_TOKEN>' -- npx -y @polarity-lab/cosmos-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"cosmos-mcp": {
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"cosmos-mcp": {
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"cosmos-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"cosmos-mcp": {
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"cosmos-mcp": {
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
COSMOS_TOKENpmk_ key from https://cosmos.polarity-lab.com/connectors. Optional on macOS once the system keychain is provisioned via `npx -y @polarity-lab/cosmos-mcp provision pmk_...`.
Pricing
Open source
Cosmos MCP FAQ
Is Cosmos MCP free?
Yes. Cosmos MCP is open source, so you can use and self-host it for free.
How do I add Cosmos MCP to Claude Code?
Run this command in your terminal: claude mcp add cosmos-mcp --env COSMOS_TOKEN='<COSMOS_TOKEN>' -- npx -y @polarity-lab/cosmos-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.