Skip to content

MCP server integration

Astrocyte as a Model Context Protocol server for Claude Code, Cursor, Windsurf, and any MCP-capable agent.

Module: astrocyte.mcp Pattern: MCP server with 6 tools — stdio or SSE transport Framework dependency: fastmcp (required for astrocyte[mcp])

Terminal window
pip install astrocyte[mcp]
.claude/settings.json
{
"mcpServers": {
"memory": {
"command": "astrocyte-mcp",
"args": ["--config", "astrocyte.yaml"]
}
}
}
Terminal window
# stdio (default — for local MCP clients)
astrocyte-mcp --config astrocyte.yaml
# SSE (for remote / shared / multi-agent)
astrocyte-mcp --config astrocyte.yaml --transport sse --port 8080
ToolParametersDescription
memory_retaincontent, bank_id?, tags?, metadata?, occurred_at?Store content
memory_recallquery, bank_id?, banks?, strategy?, max_results?, tags?Search memories
memory_reflectquery, bank_id?, banks?, strategy?, max_tokens?Synthesize answer
memory_forgetbank_id?, memory_ids?, tags?Delete memories
memory_banks(none)List available banks
memory_health(none)Check system health
# astrocyte.yaml — MCP-specific settings
mcp:
default_bank_id: personal # Used when bank_id is omitted
expose_reflect: true # Toggle reflect tool (default: true)
expose_forget: false # Toggle forget tool (default: false)
max_results_limit: 50 # Hard cap on max_results
principal: "agent:claude-code" # Identity for access control
memory_recall(query="preferences", banks=["personal", "team"], strategy="parallel")
memory_reflect(query="summarize everything", banks=["personal", "team", "org"])

The full Astrocyte policy layer applies: PII scanning, rate limits, quotas, token budgets, circuit breakers, access control, hooks, metrics. See Policy layer and MCP server design.

Agent A (coding) ──┐
Agent B (review) ──┼── astrocyte-mcp (SSE, port 8080) ── Provider
Agent C (testing) ──┘

Multiple agents connect to the same MCP server via SSE transport, sharing memory banks with per-agent access control.