memorybank-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@memorybank-mcp fetch the latest project rules from MemoryBank"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
memorybank-mcp
MemoryBank MCP server for Cursor clients. It proxies the MemoryBank rules endpoint (GET /api/external/rules) over MCP stdio via the memorybank_get_rules tool and returns the complete rules document as plain text.
Requirements
Node.js 18+
MEMORYBANK_BASE_URLandMEMORYBANK_API_KEYenvironment variables must be set before start.MEMORYBANK_PROJECT_IDis optional but recommended when your API key is scoped to a project.
Related MCP server: Engineering Knowledge Graph MCP Server
Environment variables
During development you can store secrets in a local .env file and run the provided npm scripts (npm run dev, npm run debug) – they already pass --env-file=.env to tsx. For production runs (node dist/index.js or the published binary) export the variables in your shell.
Name | Required | Description |
| yes | MemoryBank backend origin, e.g. |
| yes | Workspace API key used for the Authorization header. |
| no | Project/workspace identifier passed as the |
| no | Override request timeout in milliseconds (default |
| no | Cache lifetime for fetched rules (default |
| no | Custom User-Agent header (defaults to |
| no | Set to |
Scripts
npm run build– compile TypeScript intodist/.npm start– run the compiled stdio server (node dist/index.js).npm run dev– launch the stdio server in watch mode viatsx, loading variables from.env.npm run watch– run the TypeScript compiler in watch mode (tsc -w) to keepdist/updated without launching the server.npm run debug– start the debug client to call thememorybank_get_rulestool via stdio.
The MCP server instructs agents to call memorybank_get_rules exactly once at the start of a session. The tool caches the Markdown response for MEMORYBANK_CACHE_TTL_MS milliseconds and accepts an optional { "force": true } argument to bypass the cache.
Resources
memorybank://context/active_context– exposes the cached MemoryBank ruleset as Markdown (identical to thememorybank_get_rulestool output).memorybank://rules– alias resource that returns the same Markdown document.
Development workflow
npm install
npm run build
node dist/index.jsFor CLI-based testing without Cursor, ensure dist/ is current and run:
npm run debugCursor configuration
Add the server to ~/.cursor/mcp.json (or workspace mcp.json) under the mcpServers key.
Option 1: Environment variables in mcp.json
Using npx:
{
"mcpServers": {
"memorybank-mcp": {
"command": "npx",
"args": ["--yes", "@morsa/memorybank-mcp"],
"env": {
"MEMORYBANK_BASE_URL": "https://example.com",
"MEMORYBANK_API_KEY": "mbk_...",
"MEMORYBANK_PROJECT_ID": "proj_123"
}
}
}
}Using a locally built binary:
{
"mcpServers": {
"memorybank-mcp-local": {
"command": "node",
"args": ["/path/to/memorybank-mcp/dist/index.js"],
"env": {
"MEMORYBANK_BASE_URL": "https://example.com",
"MEMORYBANK_API_KEY": "mbk_...",
"MEMORYBANK_PROJECT_ID": "proj_123"
}
}
}
}Option 2: Using .env file
Create a .env file in your project root or the directory where Cursor runs:
MEMORYBANK_BASE_URL=https://example.com
MEMORYBANK_API_KEY=mbk_...
MEMORYBANK_PROJECT_ID=proj_123Then configure mcp.json without env variables:
{
"mcpServers": {
"memorybank-mcp": {
"command": "npx",
"args": ["--yes", "@morsa/memorybank-mcp"]
}
}
}Available Tools
1 toolmemorybank_get_rulesA
Retrieve the complete MemoryBank rules document as Markdown text.
Inputs: force.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so an agent cannot misselect or confuse it with anything else. Its purpose (retrieving the rules document) is stated explicitly and unambiguously.
The single name follows a clean server-prefixed verb_noun pattern (memorybank_get_rules). There is no set of names to check against, so consistency can only be inferred rather than demonstrated.
A single tool that only fetches a static rules document is very thin coverage for a server named memorybank-mcp. It offers no way to actually store, query, or manage memories, so the surface feels trivial for the implied scope.
Only a read operation exists; there is no create, update, delete, list, or search for memory entries, leaving the memory-management lifecycle entirely uncovered. The one tool serves its narrow purpose, but the overall surface has significant gaps that would block real memory workflows.
Maintenance
Related MCP Connectors
MCP server (stdio): fetch web pages as clean readable markdown via the AgentForge API
Share one project context across ChatGPT, Claude, Telegram and any MCP client.
Shared team memory and rules for Claude Code, Codex, Cursor and other MCP agents.
Shared memory for connected AI tools. Projects, rules and skills over MCP. OAuth or API key.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceServes project-specific skills and behavioral rules to AI agents via MCP, enabling automatic injection of behavioral rules and on-demand knowledge for coding assistants like Claude Code and Gemini CLI.1-
- AlicenseNot gradedqualityDmaintenanceProvides a stdio MCP bridge for coding agents to query and record engineering knowledge locally, preserving debugging history, failed attempts, and verified solutions.MIT
- AlicenseAqualityDmaintenanceProvides local persistent working memory for AI agents, allowing them to load rules, preferences, and project state before tasks and save validated experiences after successful completion. Works with stdio MCP clients via a local JSON file.5MIT
- FlicenseNot gradedqualityDmaintenanceEnables MCP hosts like Cursor or Claude to query an enterprise knowledge base via stdio, providing RAG-based answers with cited sources.-