MAPI
Supports optional integration with Google Generative AI for model-based operations such as proposal generation and semantic retrieval.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MAPIStore a memory for demo-project: API rate limit settings"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MAPI
Auditable memory and governance for AI agents
MAPI is an auditable memory, lifecycle and governance server for AI agents, exposed through the Model Context Protocol (MCP).
Status: Public Release Candidate / Developer Preview
Licensed under Apache License 2.0.
Why durable agent memory needs governance
Chat history is session context, not a durable and inspectable memory system. A vector index can improve similarity search, but it does not establish provenance, current state, supersession, review policy, conflict handling or rollback. MAPI treats writes as explicit operations, preserves lineage and puts dangerous maintenance behind permissions and preview-oriented workflows.
Related MCP server: AGI MCP Server
What MAPI provides
durable, project-aware memories and lexical retrieval;
relationships, provenance and memory timelines;
lifecycle state, lineage and supersession;
guarded preview/apply/rollback workflows;
conflict detection, review and capture reconciliation;
retention, quality and owner-governance tools;
optional semantic retrieval and model-provider integrations;
proposal-only Sandman maintenance;
fail-closed permission profiles and compact MCP workshops.
What MAPI is not
MAPI is not a hosted SaaS, an autonomous agent, an LLM, or merely a vector database. It does not replace application-level authentication or authorization. The local admin surface is powerful and must not be exposed remotely without an independent security boundary.
Architecture
flowchart LR
C["MCP client"] --> H["FastMCP HTTP runtime"]
H --> S["Compact MCP surface"]
S --> P["Profile and risk guard"]
P --> R["Workshop registry"]
R --> M["Memory and lifecycle services"]
R --> G["Governance and timeline"]
M --> D[("SQLite")]
G --> D
M -. optional .-> V["Semantic layer"]
G -. proposal only .-> O["Optional model providers"]
M --> A["Audit and rollback records"]The thin entry point is server.py. Runtime composition lives in app/runtime, action metadata in app/workshops, and business operations in app/memory and related service modules.
Safety model
preview -> explicit apply -> audit -> rollbackWorkshop actions carry risk classes (R0 through R3) and minimum profiles. Unknown profiles fail closed to reader. The default agent profile cannot access the admin workshop. Selecting admin also requires MAPI_ADMIN_TOOLS_ENABLED=true. External provider output is untrusted, validated and proposal-only; providers are disabled by default.
Five-minute quickstart
Python 3.11 or 3.12 is required.
python -m venv .venvWindows PowerShell:
.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -e .
mapi-migrate
mapi-seed-demo
mapi-doctor
mapi-serverLinux:
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -e .
mapi-migrate
mapi-seed-demo
mapi-doctor
mapi-serverThe server binds to http://127.0.0.1:8015/mcp/. The quickstart performs no external model calls and does not download a model.
In another shell, run the verified protocol smoke:
python scripts/smoke_mcp.pyThe smoke writes one deterministic fictional verification memory, searches and reads it, inspects links and verifies that the admin workshop is denied.
MCP client connection
Generic client configuration:
{
"mcpServers": {
"mapi": {
"url": "http://127.0.0.1:8015/mcp/",
"transport": "http"
}
}
}The endpoint and HTTP transport are verified. No named third-party client integration is claimed by this release candidate. See MCP integration.
Example workflow
Call
bootstrap_agent_contextfordemo-project.Search with
find_memories.Inspect a selected memory and its links.
Save an explicitly authorized memory or submit a proposal.
Preview a lifecycle or retention action.
Apply only with an authorized profile and explicit approval.
Inspect the audit/timeline record and retain rollback material.
Capability overview
Workshop | Purpose |
| Memory creation, retrieval, lineage, lifecycle and retention |
| Project and memory event history |
| Conflict reports and guarded decisions |
| Quality, queues, SLA and observability |
| Owner catalogue and responsibility checks |
| Flag inspection and controlled updates |
| Quarantined research review |
| Optional semantic retrieval |
| Deterministic and proposal-only maintenance |
| Previewed deterministic linking |
| Optional local-model worker functions |
| Dangerous local operator functions, hidden by default |
The authoritative generated catalogue is docs/CAPABILITIES.md.
Technology stack
Python 3.11/3.12;
FastMCP and its HTTP runtime;
SQLite;
Pydantic;
optional
sqlite-vecandsentence-transformers;optional Google GenAI and JSON repair support.
Documentation
Security and privacy
The default bind is loopback-only and the default profile is agent. No real memories, database, logs, backups, tokens or private deployment configuration are included. Review SECURITY.md and the security model before changing network exposure or profiles.
Development and tests
pip install -e ".[dev]"
pytest
ruff check .
python scripts/audit_public_repository.py
git diff --checkRegenerate the capability catalogue after workshop changes:
mapi-capabilitiesKnown limitations
SQLite has single-writer characteristics.
This release is single-instance and does not provide public multi-tenant onboarding.
Semantic retrieval and model providers are optional and may require network downloads or credentials.
Admin tools require an external authentication boundary for any non-local deployment.
Docker packaging and macOS verification are not included in this candidate.
Some schema migrations retain compatibility tables from earlier private development; inactive product flows are not exported.
Roadmap
complete manual publication review;
reduce compatibility-only schema and code behind explicit migrations;
expand clean-install and client integration coverage;
add tested container packaging.
License
MAPI is licensed under the Apache License 2.0. See the licensing guide for redistribution and contribution terms.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA Model Context Protocol server that provides AI agents with persistent memory capabilities through Mem0, allowing them to store, retrieve, and semantically search memories.Last updated679MIT
- FlicenseBqualityDmaintenanceA Model Context Protocol server that provides persistent memory capabilities for AI systems, enabling true continuity of consciousness across conversations through episodic, semantic, procedural, and strategic memory types.Last updated246
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides knowledge graph-based persistent memory for LLMs, allowing them to store, retrieve, and reason about information across multiple conversations and sessions.Last updated990,9492MIT
- Alicense-qualityBmaintenanceGoverned shared memory platform for AI agents and agent fleets. Provides persistent memory, cross-agent knowledge sharing, permissions, audit trails, and multi-tenant isolation through a Model Context Protocol (MCP) server.Last updated7396Apache 2.0
Related MCP Connectors
Secure, user-owned long-term memory for AI agents over OAuth-protected remote MCP. Save, search, recall, update, and govern preferences, project context, decisions, and task state across ChatGPT, Claude, Copilot, IDEs, and CLIs.
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
Sovereign Agent OS — Persistent Memory, Governance & Compliance for AI Agents.
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/cabo0m/mapi-agent-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server