Skip to main content

MCP Server for Manhattan Memory System - Give AI agents persistent memory

Project description

Manhattan MCP

Give AI Agents Persistent Memory - MCP Server for the Manhattan Memory System

Python 3.10+ License: MIT

Manhattan MCP is a local Model Context Protocol (MCP) server that connects AI agents (Claude Desktop, Cursor, Windsurf, etc.) to the Manhattan Memory System - a cloud-based persistent memory for AI assistants.

Features

  • 🧠 Persistent Memory - Store and retrieve information across conversations
  • 🔍 Semantic Search - Find relevant memories using natural language queries
  • 🤖 AI-Generated Answers - Get comprehensive answers using memory context
  • 👤 Multi-Agent Support - Create separate memory spaces for different use cases
  • 📊 Analytics - Track memory usage and agent statistics
  • 💾 Export/Import - Backup and restore memory data

Installation

pip install manhattan-mcp

Quick Start

1. Get Your API Key

Sign up at https://themanhattanproject.ai to get your API key.

2. Set Environment Variable

export MANHATTAN_API_KEY="your-api-key-here"

Or create a .env file:

MANHATTAN_API_KEY=your-api-key-here

3. Configure Your AI Client

Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "manhattan": {
      "command": "manhattan-mcp",
      "args": ["start"]
    }
  }
}

Cursor

Add to your Cursor MCP settings (.cursor/mcp.json):

{
  "mcpServers": {
    "manhattan": {
      "command": "manhattan-mcp"
    }
  }
}

Windsurf

Add to your Windsurf configuration:

{
  "mcpServers": {
    "manhattan": {
      "command": "manhattan-mcp",
      "args": ["start"]
    }
  }
}

4. Start Using Memory!

Once configured, your AI agent will have access to 35+ memory tools:

  • search_memory - Search for relevant memories
  • add_memory_direct - Store new information
  • get_context_answer - Get AI-generated answers with memory context
  • session_start / session_end - Manage conversation sessions
  • And many more!

Available Tools

Memory Operations

Tool Description
search_memory Search memories using natural language
add_memory_direct Store structured memories
get_context_answer Get AI answers using memory context
update_memory_entry Update existing memories
delete_memory_entries Delete specific memories

Agent Management

Tool Description
create_agent Create a new memory agent
list_agents List all your agents
get_agent Get agent details
update_agent Update agent configuration
delete_agent Permanently delete an agent

Session Management

Tool Description
session_start Initialize a conversation
session_end End session and sync memories
pull_context Load relevant context
push_memories Sync pending memories

AI Helpers

Tool Description
auto_remember Automatically extract facts from messages
should_remember Check if info is worth storing
what_do_i_know Summary of known user info

Configuration Options

Environment Variable Description Default
MANHATTAN_API_KEY Your API key (required) -
MANHATTAN_API_URL API endpoint URL https://themanhattanproject.ai/mcp
MANHATTAN_AGENT_ID Default agent ID Enterprise default
MANHATTAN_TIMEOUT Request timeout (seconds) 120

CLI Commands

# Start the MCP server (default)
manhattan-mcp start

# Show version
manhattan-mcp --version

# Show help
manhattan-mcp --help

Example Usage

Once your AI agent is connected, it can use memory like this:

Storing information:

User: My name is Sarah and I prefer Python over JavaScript.
AI: *calls add_memory_direct to store this preference*
    Nice to meet you, Sarah! I've noted your preference for Python.

Retrieving context:

User: What programming language should I use for this project?
AI: *calls search_memory to find preferences*
    Based on your preference for Python, I'd recommend using it for this project!

Development

# Clone the repository
git clone https://github.com/agent-architects/manhattan-mcp
cd manhattan-mcp

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

License

MIT License - see LICENSE for details.

Links

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manhattan_mcp-0.1.48.tar.gz (123.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manhattan_mcp-0.1.48-py3-none-any.whl (103.4 kB view details)

Uploaded Python 3

File details

Details for the file manhattan_mcp-0.1.48.tar.gz.

File metadata

  • Download URL: manhattan_mcp-0.1.48.tar.gz
  • Upload date:
  • Size: 123.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for manhattan_mcp-0.1.48.tar.gz
Algorithm Hash digest
SHA256 850ea9c8e912481197b8f309302842f4e59aceed2aa2d362634dc068d1019f96
MD5 f5f852dc14844434af710a92c0e0abad
BLAKE2b-256 f9928ddd9203723e2bb1381a6c06a4f1b9595414a8b748db0e4c32906950b34d

See more details on using hashes here.

File details

Details for the file manhattan_mcp-0.1.48-py3-none-any.whl.

File metadata

  • Download URL: manhattan_mcp-0.1.48-py3-none-any.whl
  • Upload date:
  • Size: 103.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for manhattan_mcp-0.1.48-py3-none-any.whl
Algorithm Hash digest
SHA256 4f88ea9327566edf90082bb9dce9a5a267a99e8b292d34822e4054b1fb9284e8
MD5 783300d5d1b14c1cb2b53bfa52bf2d6c
BLAKE2b-256 610b34450fc62c5d5eaff1326ee78c225b9c90f5245b4c64465d87fd51cd28ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page