Skip to main content

AMP: The Agent Memory Protocol - A local-first, MCP-native memory server.

Project description

AMP: The Agent Memory Protocol 🧠

The Open Standard for Agentic Memory.

License: MIT Python 3.10+ MCP PyPI


The (Short) Story

I was tired of building AI agents that forgot everything the moment I closed the terminal.

RAG (Retrieval Augmented Generation) is great for documents, but terrible for experience. It chunks text blindly, losing the narrative. When I asked my agents "Why did we decide this yesterday?", they gave me hallucinated nonsense.

So I built AMP. It's not just a database; it's a Hippocampus for your agents. It mimics the human brain's distinction between Working Memory (Short-term context) and episodic Long-Term Memory, giving your agents a continuous, evolving sense of self.

Why developers are switching to AMP?

🌌 Galaxy View (Visualization)

Don't just guess what your agent knows. See it. AMP comes with a stunning, 60fps local dashboard. Watch memories form constellations in real-time. Nodes cluster by semantic meaning—if two ideas are related, they physically move together.

Galaxy View


🕸️ Force Mode (Physics)

Toggle to Force Mode to see the topological connections between your memories. It uses a physics simulation (D3.js) to show you how different memory clusters are "pulled" together by shared context.

Force Mode


🔍 Semantic Query

Stop guessing keywords. Query your agent's memory using natural language. I built a dedicated interface that not only finds relevant memories but shows you the Relevance Score (0-100%) so you know exactly why a memory was retrieved.

Semantic Query


🔌 MCP Native (Plug & Play)

Built from day one for the Model Context Protocol.

  • Claude Desktop: Add AMP to your config, and Claude remembers you forever.
  • Cursor: Give your coding assistant persistent context of your project history.

🧠 The "3-Layer" Brain

I don't just dump text into a vector store. I structure it:

  1. ⚡ STM (Short Term): High-fidelity buffer. "What are we doing right now?"
  2. 📚 LTM (Long Term): Consolidated insights. "What did we learn last week?"
  3. 🕸️ Graph: Connections between entities. "How is function A related to bug B?"

🏆 Best-in-Class Recall

I benchmarked AMP against the leading competitor (Mem0) on the complex LoCoMo dataset. The results weren't close.

System LLM Recall Accuracy Why?
AMP 81.6% 🚀 Context-First. Preserves the narrative.
Mem0 21.7% Extraction-First. Aggressive summarization loses detail.

Quick Setup (30 seconds)

1. Install via uv (Recommended)

# Install the tool
uv tool install amp-memory

# Start the brain
amp serve

2. Or, Install via pip

pip install amp-memory
amp serve

3. Open the Dashboard

Visit http://localhost:8000. The interface is Galaxy Mode by default. Switch to Force Mode to see physics-based connections.


4. Connect to IDEs & Tools

AMP works native with Antigravity, Cursor, VS Code Copilot, and Claude Desktop. Add this to your MCP configuration file (usually mcp_config.json or claude_desktop_config.json):

{
  "mcpServers": {
    "amp-memory": {
      "command": "uv",
      "args": ["tool", "run", "amp-memory", "serve"],
      "env": {
        "PYTHONPATH": "."
      }
    }
  }
}

Now you can say:

"@amp remember that I am refactoring the login controller." "@amp what was the last bug we fixed?"

It knows.


Roadmap 🗺️

  • Galaxy View: Visual Semantic Space.
  • Graph API: D3.js powered visualization.
  • Semantic Search: Vector-based relevance sorting.
  • Cloud Sync: Sync memories across devices.
  • Multi-Agent Swarm: Shared memory for agent teams.

Star History

Star History Chart


Made with ❤️ by Akshay.

Project details


Download files

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

Source Distribution

amp_memory-0.2.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

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

amp_memory-0.2.0-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file amp_memory-0.2.0.tar.gz.

File metadata

  • Download URL: amp_memory-0.2.0.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for amp_memory-0.2.0.tar.gz
Algorithm Hash digest
SHA256 66f1ec12704f1bd9b984b76f0584471f594a7e6f3930788c1d51ae7925915606
MD5 1f607fc8afd45a18efdc732ef9c32e12
BLAKE2b-256 2971ff59ff30563b8f325421ce6694854d0f30f14e5c183a2f2cb16ea7d4926a

See more details on using hashes here.

File details

Details for the file amp_memory-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: amp_memory-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for amp_memory-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dc542188eaa9c7eb258a3a6f438ebf167db53b4d39eae92ae0a5db653848bef
MD5 05ddb241ebaf992b82feedec86b73164
BLAKE2b-256 d6e04841002a8869e9a379d8bbcb49e188934346aca4dee71628b1d6921d7f0b

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