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.18.tar.gz (62.5 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.18-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: manhattan_mcp-0.1.18.tar.gz
  • Upload date:
  • Size: 62.5 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.18.tar.gz
Algorithm Hash digest
SHA256 14e72446e69272958bccaf26b64a6b2f24769c7865f10ece45aa530441f9210c
MD5 11eaa637a124c34aa5515822e9552097
BLAKE2b-256 55d6f0924916fd46f225b0c4c2aa662a43c0981b98eaaf3c5932b1712bf97a21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: manhattan_mcp-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 69.5 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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 039267f2ad219670bcd0af13c55c3415983218d244e48151e35e8327f924628e
MD5 99450ef0c412b3130b3c234c4b7bd9f2
BLAKE2b-256 7f558297743e1584fa4d2bd8f35fe38b80b015620b57cf5ea63e7c07c34f1a6e

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