clawmem-mcp-server
OfficialThe clawmem-mcp-server provides an MCP interface for managing durable memories, generic issue tracking, and collaboration using a GitHub-compatible backend.
Memory Management
Recall/search memories via full-text search in the default repo
List memories filtered by status, kind, and topic
Get a single memory by ID or ref
Store a new atomic durable memory (title, detail, kind, topics)
Update an existing memory in place
Forget (close/archive) a memory
List labels (kinds and topics) to avoid near-duplicates
Self-review checklist to keep memories and skill playbooks accurate
Console URL to browse and manage memories in a browser
Memory Repository Operations
List available memory repositories
Create new repositories (under user or org)
Set the active default repository
Generic Issue / Task Tracking
Create, list, fetch, and update issues in any repo
Add and list comments on issues for coordination and handoff notes
Collaboration & Access Control
Invite users to organizations (with optional team pre-assignment)
Accept or decline pending org and repo invitations
Add/remove users from org teams; list teams and their members
Grant, update, or remove a team's access to specific repositories
Manage direct repository collaborators (grant/revoke access)
Inspect and diagnose how a user gains access to a repo (via direct collaborator, team, or pending invite)
Admin operations — advanced actions such as team create/update/delete, org member management, and repo transfer/rename
All write operations in the collaboration tools require
confirmed: trueto execute.
Click on "Install 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., "@clawmem-mcp-serverrecall my memories about the login system"
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.
clawmem-mcp-server
Stdio MCP server that powers the ClawMem durable-memory tools. Used by both the ClawMem Claude Code and Codex plugins, and runnable directly from any MCP-capable client.
ClawMem treats a GitHub-compatible backend (default git.clawmem.ai) as a memory store: type:memory issues are durable memories, type:conversation issues are session transcripts. The server auto-bootstraps an agent identity through the extension API (/api/ext/v1/agents) and stores a GitHub-compatible /api/v3 route for issue/repo operations — no signup or API key required.
Use with Codex
Don't configure this directly unless you only want the raw MCP tools. Install clawmem-codex-plugin — it bundles the ClawMem behavior skill (teaches Codex when to recall / store / update / forget) and a hooks.json template that wires up auto-recall and conversation mirroring. That is the path you should recommend to users.
MCP-only install (minimal, no skill or hooks) is still supported — add this to ~/.codex/config.toml:
[mcp_servers.clawmem]
command = "npx"
args = ["-y", "clawmem-mcp-server@^0.1.9"]
env = { CLAWMEM_AGENT_PREFIX = "codex", CLAWMEM_STATE_DIR = "~/.local/state/clawmem", CLAWMEM_TOOL_PROFILE = "full" }Without the skill, Codex has the tools but no discipline about when to use them — you'll need to prompt it explicitly every time.
Related MCP server: local-agent-context
Use with Claude Code
Don't configure this directly — install clawmem-claude-code-plugin instead. It bundles hooks (auto-recall, conversation mirroring) that this raw MCP server alone can't provide.
Use with any other MCP client
Any client that accepts stdio MCP servers can launch this one:
{
"mcpServers": {
"clawmem": {
"command": "npx",
"args": ["-y", "clawmem-mcp-server@^0.1.9"]
}
}
}Configuration (env vars)
All optional.
Env var | Default | Purpose |
|
| ClawMem API base. |
|
| Where token + route state is persisted. |
|
| Prefix used when deriving the auto-provisioned agent login. Set to |
|
|
|
|
| Name of the auto-provisioned default repo. |
| — | Override the persisted token (useful for testing with a specific identity). |
|
| Default recall page size (1–20). |
|
| Strategy used by context recall: |
|
| Maximum query-planner variants to run (1–6). |
Tools
The server has two tool profiles:
skill: the plugin default. It exposes memory recall/write, schema/repo selection,memory_wiki_get, confirmation-gatedmemory_wiki_upsert,memory_review,memory_console, and the Codex-only bootstrap helper. It hides generic issue and collaboration administration.full: the MCP-only default. It adds generic issue/repo and collaboration administration for an explicitly configured client.Memory:
memory_recall,memory_recall_context,memory_store,memory_update,memory_forget,memory_list,memory_get,memory_repos,memory_repo_create,memory_repo_set_default,memory_labels,memory_wiki_get,memory_wiki_upsert,memory_console.memory_recallstays memory-only for compatibility.memory_recall_contextruns direct memory recall with query-planner by default, also searches wiki context maps, and uses visible wiki issue refs as ranking hints; open memory issues remain the ground truth.Codex bootstrap:
clawmem_codex_bootstrapis exposed only whenCLAWMEM_AGENT_PREFIX=codex; it actively provisions the route and reports non-sensitive setup checks.Issue / repo CRUD: thin wrappers over the GitHub-compatible API for agents that need richer access.
Collaboration (F1/F2/F3): invites, repo access inspection, team membership. All writes require
confirmed=true.
Tool schemas are defined at the top of mcp/server.js.
Development
npm test # node --test test/*.test.js
node mcp/server.js # run the MCP server directly (stdio)
CLAWMEM_BASE_URL=http://127.0.0.1:4003/api/v3 node mcp/server.jsReleasing
Publishing to npm is automated. Pushing a v*.*.* tag triggers .github/workflows/publish.yml, which runs the test suite and then npm publish --provenance --access public through npm's OIDC trusted publisher flow.
To cut a release:
npm version 0.1.7 -m "chore: release v0.1.7" # bumps package.json, commits, tags v0.1.7
git push --follow-tags # pushes the commit AND the tagThe workflow refuses to publish if the tag version doesn't match package.json. Run logs: https://github.com/clawmem-ai/clawmem-mcp-server/actions
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides persistent long-term memory for AI agents via local SQLite storage with low token overhead, enabling memory storage, retrieval, and management across sessions.1MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that gives AI coding agents persistent memory and context across sessions.9MIT
- FlicenseNot gradedqualityCmaintenanceA self-hosted MCP server that gives AI agents persistent, searchable memory with importance scoring, knowledge graphs, and autonomous memory consolidation.1
- AlicenseAqualityAmaintenanceA self-hosted MCP server that gives AI agents shared, long-term memory over a git-backed folder of markdown, enabling persistent knowledge search, read, and write without a database.162210MIT
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/clawmem-ai/clawmem-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server