Skip to main content

MCP Server

The MCP (Model Context Protocol) server is how memoryd connects to any AI coding tool — Cursor, Windsurf, Cline, Claude Code, custom pipelines, or anything that speaks MCP. It's the universal integration point.

Why MCP matters for teams

Different team members use different tools. That's fine. MCP is a standard protocol that lets any compatible tool search and store knowledge in the same shared database. The tool doesn't matter — the knowledge store is the product.

Alice uses Claude Code (via proxy), Bob uses Cursor (via MCP), Carol has a custom pipeline (via MCP). They all contribute to and benefit from the same team knowledge.

Setup

Add memoryd to your tool's MCP configuration:

{
"mcpServers": {
"memoryd": {
"command": "memoryd",
"args": ["mcp"]
}
}
}

This works with Claude Code, Cursor, Windsurf, Cline, and any tool that supports MCP servers. The memoryd daemon must be running (memoryd start) for MCP tools to work.

Available tools

The MCP server gives AI tools access to 8 capabilities:

Core knowledge operations

ToolWhat it does
memory_searchSearch the shared knowledge base with a natural language query
memory_storeStore new knowledge (auto-deduplicated, noise-filtered, secrets scrubbed)
memory_listBrowse stored knowledge, optionally filtered by text
memory_deleteRemove a specific knowledge item

Source ingestion

ToolWhat it does
source_ingestCrawl a URL (wiki, docs site) and add its content to the knowledge base
source_listList all ingested sources and their status
source_removeRemove a source and all its associated knowledge

Quality monitoring

ToolWhat it does
quality_statsCheck the knowledge base health — retrieval counts, learning status

How it fits together

Any AI tool ←→ MCP (stdin/stdout) ←→ memoryd ←→ Shared Atlas store

The MCP server is the full knowledge management interface — read, write, update, and delete. It's how AI tools interact with the shared knowledge base:

  • Search (memory_search) — runs the retrieval pipeline with hybrid search, quality filtering, and diversity optimization
  • Store (memory_store) — adds new knowledge through the capture pipeline with noise filtering, secret scrubbing, and deduplication
  • Delete (memory_delete) — removes outdated or incorrect knowledge items
  • Browse (memory_list) — lists stored knowledge, optionally filtered

The proxy handles automatic capture from conversations. MCP handles everything else — retrieval, explicit storage, and knowledge maintenance.

The good citizen pattern

AI tools that connect via MCP should actively maintain knowledge quality — not just consume it. When an AI tool retrieves knowledge via memory_search and discovers that the information is outdated, inaccurate, or no longer relevant, it should correct the record:

  1. Delete the outdated item with memory_delete
  2. Store the corrected version with memory_store

This matters at team scale. A deployment procedure changes, an API gets deprecated, an architecture decision gets reversed — without active maintenance, stale knowledge poisons the store for everyone. When every team member's AI tool acts as a good citizen, the knowledge base stays current organically.

For example: Copilot retrieves a memory about the deploy process that references an old CI pipeline. The developer corrects it during the session. Copilot should delete the outdated memory and store the updated version — so the next person who asks about deployments gets the right answer.

This is the expected behavior. AI tools using memoryd should treat knowledge maintenance as part of their workflow, not an afterthought.

Read-only usage

Any tool can connect via MCP with --read-only and only use memory_search — consuming team knowledge without contributing or modifying. This is useful for:

  • Tools that should read but not write (evaluation, auditing)
  • Team members in security-sensitive contexts
  • Trial periods before committing to full integration

Note: read-only tools can't participate in the good citizen pattern above. For full knowledge health, at least some team members should run in full mode.

See Read-Only Mode for more on this pattern.

For teams using multiple tools

A common team setup:

Team memberToolConnectionContribution
AliceClaude CodeProxy + MCPAutomatic capture via proxy, retrieval + knowledge maintenance via MCP
BobCursorMCPAgent searches, stores, and maintains knowledge
CarolCustom pipelineMCP (read-only)Reads team knowledge, doesn't write or modify
DaveClaude Code + CursorProxy + MCPFull capture + full knowledge management

All four draw from and contribute to the same knowledge pool.