Mem-Brain MCP Server
MCP (Model Context Protocol) server that exposes Mem-Brain API functionality as standardized tools for AI agents. Built with FastMCP for production-ready HTTP/SSE transport.
Underlying HTTP API (tools, async jobs, search patterns): see Membrain API: Guide for Agentic Applications in the parent repo.
Features
- Memory CRUD and semantic search
- Search modes:
raw(graph-native),interpreted(LLM summary),both(summary + evidence) - Graph operations (path + neighborhood)
- Stats and health endpoints
- HTTP/SSE transport for remote MCP clients
Authentication
Mem-Brain MCP uses MemBrain API keys.
- Preferred header in MCP client config:
X-API-Key: mb_live_... - Also supported:
Authorization: Bearer mb_live_...
Installation
PyPI
pip install mem-brain-mcp
mem-brain-mcp
uvx
uvx mem-brain-mcp
Configuration
API_BASE_URL=https://mem-brain-api-cutover-v4-production.up.railway.app
MEMBRAIN_API_KEY=mb_live_xxx # optional fallback for single-user local runs
MCP_SERVER_HOST=0.0.0.0
MCP_SERVER_PORT=8100
LOG_LEVEL=INFO
MCP Client Examples
Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"mem-brain": {
"url": "http://localhost:8100/mcp",
"headers": {
"X-API-Key": "mb_live_xxx"
}
}
}
}
Claude Desktop
{
"mcpServers": {
"mem-brain": {
"url": "http://localhost:8100/mcp",
"headers": {
"X-API-Key": "mb_live_xxx"
}
}
}
}
Development
pytest
Build / Publish
uv build
uv tool run twine upload dist/*
Metadata
Release files for mem-brain-mcp 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mem_brain_mcp-1.1.5.tar.gz | 120.2 kB | Without provenance | Details for mem_brain_mcp-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mem_brain_mcp-1.1.5-py3-none-any.whl | Python 3 | none | any | Details for mem_brain_mcp-1.1.5-py3-none-any.whl |
Total release size: 139.2 kB
Release files / mem_brain_mcp-1.1.5.tar.gz
| Download URL | mem_brain_mcp-1.1.5.tar.gz |
|---|---|
| Size | 120.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd9b2390a696527eeef21d4a54fb5660bdf33a4dc73db6f0c479aac358bdfecc
|
|
BLAKE2b-256 checksum How to use checksums |
368da9a757317f9290b3139be3a2faa5dfe1a38161ba62ce073e1106e6f7dc2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / mem_brain_mcp-1.1.5-py3-none-any.whl
| Download URL | mem_brain_mcp-1.1.5-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ab0ab8509c958b4943b0b60d37ebd8298ce34f7add04cc01f7281c8831e505e
|
|
BLAKE2b-256 checksum How to use checksums |
59859c570967e962a88f9efd1658395d5ed2b463d3b9275e2c16124a639bf486
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for mem-brain-mcp 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.