npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@manasdb/mcp-server

v0.1.1

Published

Plug-and-play MCP memory server for AI agents — powered by ManasDB polyglot storage (MongoDB, PostgreSQL, and more)

Downloads

134

Readme

@manasdb/mcp-server

npm version npm downloads Node.js TypeScript MCP Compatible License Powered by ManasDB

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 setup

This 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 | | :-------------------- | :------------------------------------------------------------- | | @manasdb/core | Core library: chunking, embedding, polyglot storage | | @manasdb/mcp-server | 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 | mongodb | | PostgreSQL (pgvector) | ✅ Stable | postgres | | Redis | 🔜 Coming Soon | redis | | Elasticsearch | 🔜 Coming Soon | elasticsearch |


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 setup

The wizard will ask you for:

  1. Project Name
  2. MongoDB URI
  3. PostgreSQL URI
  4. Embedding Model Source (transformers, ollama, gemini, openai)
  5. Model Name (e.g. nomic-embed-text:latest for Ollama)
  6. 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

  1. Open SettingsFeaturesMCP Servers
  2. Click + Add new MCP Server
  3. Type: command
  4. Command: npx -y @manasdb/mcp-server --manas-config="{...}"

Available Tools

| Tool | Description | Input | | :--------- | :---------------------------------------------------------------------------------------- | :----------------------- | | memorize | Store information into ManasDB | { "text": "..." } | | recall | Retrieve context semantically. Returns results with contentId for each memory. | { "query": "..." } | | forget | Permanently delete a memory from all databases by its contentId (returned by recall). | { "contentId": "..." } |

Tip: Use recall first to find the contentId of the memory you want to delete, then pass it to forget.


License

See LICENSE.