MCP server and local sync package for Cosmos. Connects agents, iMessage, browser history, calendar, Claude Desktop, and shell history to a shared personal graph.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add cosmos --env COSMOS_TOKEN='<COSMOS_TOKEN>' -- npx -y @polarity-lab/cosmos-mcp~/.codex/config.toml
[mcp_servers.cosmos]
command = "npx"
args = ["-y", "@polarity-lab/cosmos-mcp"]
env = { COSMOS_TOKEN = "<COSMOS_TOKEN>" }
# codex mcp add cosmos --env COSMOS_TOKEN='<COSMOS_TOKEN>' -- npx -y @polarity-lab/cosmos-mcp~/.cursor/mcp.json
{
"mcpServers": {
"cosmos": {
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"cosmos": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"cosmos": {
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"cosmos": {
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"cosmos": {
"command": "npx",
"args": [
"-y",
"@polarity-lab/cosmos-mcp"
],
"env": {
"COSMOS_TOKEN": "<COSMOS_TOKEN>"
}
}
}
}Environment variables
COSMOS_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.