@manasdb/mcp-server
Official@manasdb/mcp-server
ManasDB = Memory Layer for AI Agents.
AI agents today lack persistent memory. @manasdb/mcp-server provides a plug-and-play memory layer for MCP-compatible assistants like Claude and Cursor โ powered by ManasDB's unique polyglot storage architecture.
With a single MCP server, AI agents can:
๐ง Store memories across multiple databases simultaneously
๐ Retrieve context with semantic vector search
๐๏ธ Delete outdated knowledge on demand
No custom integration. No boilerplate. Just one command.
Quick Start
npx @manasdb/mcp-server setupThis drops you into an interactive setup wizard that generates a ready-to-paste claude_desktop_config.json snippet in under 60 seconds.
Architecture
AI Assistant (Claude / Cursor / Any MCP Client)
โ
โ MCP Protocol (stdio)
โผ
@manasdb/mcp-server
โ
โ Tools: memorize ยท recall ยท forget
โผ
@manasdb/core โโโ Embeddings (Transformers / Ollama / Gemini / OpenAI)
โ
โโโโโดโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโ
โผ โผ โผ
MongoDB PostgreSQL Redis / ES
(coming soon)ManasDB is AI Memory Infrastructure. The components are:
Package | Role |
| Core library: chunking, embedding, polyglot storage |
| MCP Server: exposes tools to AI assistants |
Database Adapters | MongoDB, PostgreSQL (built-in), Redis, Elasticsearch (planned) |
Why ManasDB?
Feature | ManasDB | Mem0 | memGPT | LangChain |
Polyglot Storage | โ | โ | โ | โ |
Multiple DBs simultaneously | โ | โ | โ | โ |
Deduplicated Retrieval | โ | Limited | Limited | Limited |
Local Embedding (Ollama) | โ | โ | โ | Limited |
Agent Tools (MCP) | โ | Partial | Partial | Partial |
Zero Cloud Lock-in | โ | โ | โ | โ |
Supported Databases
Database | Status | Provider Type |
MongoDB (Atlas / Local) | โ Stable |
|
PostgreSQL (pgvector) | โ Stable |
|
Redis | ๐ Coming Soon |
|
Elasticsearch | ๐ Coming Soon |
|
Example Interaction
Here is how it works end-to-end in Claude Desktop:
User: Remember my name is Akshay.
Claude โ memorize called
{
"text": "User name is Akshay"
}โ Successfully memorized the context across all healthy database providers.
Later in a new conversation...
User: What is my name?
Claude โ recall called
{
"query": "user name"
}Claude: Your name is Akshay.
Setup & Configuration
For deeper information on how ManasDB's polyglot memory, chunking, and retrieval algorithms work, see the primary SDK:
@manasdb/core.
Interactive Setup (Recommended)
npx @manasdb/mcp-server setupThe wizard will ask you for:
Project Name
MongoDB URI
PostgreSQL URI
Embedding Model Source (
transformers,ollama,gemini,openai)Model Name (e.g.
nomic-embed-text:latestfor Ollama)Enable Telemetry
It then outputs a ready-to-use claude_desktop_config.json snippet.
Manual Configuration
Pass the full config to as a --manas-config argument or set MANAS_DB_CONFIG as an environment variable. The config supports all @manasdb/core options:
{
"databases": [
{
"type": "mongodb",
"uri": "mongodb://localhost:27017",
"dbName": "my_app"
},
{ "type": "postgres", "uri": "postgresql://localhost:5432/postgres" }
],
"projectName": "knowledge_base",
"modelConfig": { "source": "ollama", "model": "nomic-embed-text:latest" },
"telemetry": true,
"debug": false
}Integrations
Claude Desktop
{
"mcpServers": {
"manasdb": {
"command": "npx",
"args": [
"-y",
"@manasdb/mcp-server",
"--manas-config={\"databases\":[{\"type\":\"mongodb\",\"uri\":\"mongodb://...\"}],\"modelConfig\":{\"source\":\"transformers\"}}"
]
}
}
}Cursor
Open Settings โ Features โ MCP Servers
Click + Add new MCP Server
Type:
commandCommand:
npx -y @manasdb/mcp-server --manas-config="{...}"
Available Tools
Tool | Description | Input |
| Store information into ManasDB |
|
| Retrieve context semantically. Returns results with |
|
| Permanently delete a memory from all databases by its |
|
Tip: Use
recallfirst to find thecontentIdof the memory you want to delete, then pass it toforget.
License
See LICENSE.
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/manasdb/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server