feat: add self-hosted mem0 MCP bridge#1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds a self-hosted Mem0 path for coding-agent integrations. It updates the mem0-plugin hook scripts to support a self-hosted REST API mode via environment variables, so
lifecycle hooks can store and retrieve memories from a VPS-hosted Mem0 instance instead of Mem0 Cloud.
It also adds a self-hosted MCP bridge service that exposes the familiar memory tools over Streamable HTTP and forwards them to the local Mem0 REST server. This gives Codex, Claude
Code, and other MCP-capable tools a stable memory tool surface while keeping all data on the self-hosted backend.
In addition, the PR adds an automated upstream sync workflow that opens a PR from mem0ai/mem0@main into the fork and enables auto-merge once checks pass.
Type of Change
Breaking Changes
N/A
Test Coverage
Manual checks:
pytest integrations/mem0-plugin/tests/test_self_hosted_api.py integrations/mem0-plugin/tests/test_search.py integrations/mem0-plugin/tests/test_write_path.py tests/
test_mem0_mcp_bridge.py
docker compose -f docker-compose.yml config
python -c "import mem0_mcp_bridge.server" with PYTHONPATH=server/mcp
Checklist