Claude code Integration document #530
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of the change
This PR adds comprehensive documentation for integrating MemMachine with Claude Code, Anthropic's official CLI tool. This enables Claude Code users to leverage persistent memory across sessions, improving the development experience for ongoing projects.
Description
Added a new documentation file
docs/examples/claude_code_mcp.mdxthat provides step-by-step instructions for setting up MemMachine with Claude Code. The guide includes:.mcp.jsonconfigurationadd_memoryandsearch_memory)This documentation follows the same format and structure as existing integration guides (mcp.mdx, etc.).
Fixes/Closes
N/A - This is a new documentation addition
Type of change
[Please delete options that are not relevant.]
How Has This Been Tested?
Manual verification (list step-by-step instructions)
Manual Testing Performed:
docker compose up -d.mcp.jsonin project root with Docker configuration (Option A)claudecommand/mcpcommandadd_memoryby sharing preferences with Claudesearch_memoryby querying previous contextTest Results:
Checklist
[Please delete options that are not relevant.]
Maintainer Checklist
Screenshots/Gifs
N/A - Documentation only (no UI changes to capture)
Further comments
Note on Option B: The direct command setup method (Option B) is included as a reference implementation following standard MCP stdio patterns from the Claude Desktop
documentation. However, it has not been tested with Claude Code specifically. A clear disclaimer has been added to the documentation to set appropriate user expectations. Users
encountering issues are directed to use the validated Docker method (Option A).
Future work: Community feedback on Option B would help validate or improve that configuration method.