# Central Memory MCP

> A custom fork of @modelcontextprotocol/server-memory using Azure Functions MCP triggers and Table storage.

- **Type:** MCP server
- **Install:** `agentstack add mcp-mwg-logan-central-memory-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [MWG-Logan](https://agentstack.voostack.com/s/mwg-logan)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [MWG-Logan](https://github.com/MWG-Logan)
- **Source:** https://github.com/MWG-Logan/Central-Memory-MCP
- **Website:** https://mwg-logan.github.io/Central-Memory-MCP/

## Install

```sh
agentstack add mcp-mwg-logan-central-memory-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Central Memory MCP Server (.NET 10 Azure Functions)
[](https://archestra.ai/mcp-catalog/mwgmorningwood__central-memory-mcp)

Model Context Protocol (MCP) compliant memory & knowledge graph server implemented in .NET 10 (Azure Functions isolated worker). Provides durable project memory (entities, relations, observations) for AI assistants with workspace isolation and simple HTTP tool endpoints.

## Implemented MCP Tools
Current function set (alpha stage):
- read_graph - returns all entities for a workspace (relations currently queried separately and joined)
- upsert_entity - create or update entity (preserves existing Id if name exists)
- upsert_relation - create or update relation between two entities (requires GUIDs or resolvable names)
- get_entity_relations - list relations originating from a specific entity
- Health & Ready endpoints (/api/health, /api/ready)

Planned (not yet implemented): search_entities, search_relations, stats, temporal, batch operations, merge/detect duplicates.

## Data Model
- Entities table: PartitionKey = WorkspaceName, RowKey = Guid (Id)
- Relations table: PartitionKey = WorkspaceName, RowKey = Guid (Id)
- Workspaces table (future expansion)

Observations stored as a single delimited string ("||") internally; split into List at read time.

## Quick Start
```bash
dotnet restore
dotnet build
func start --port 7071
curl http://localhost:7071/api/health
```
To read the graph, invoke the read_graph MCP tool from the client and supply the workspaceName parameter.

## Directory Layout
```mermaid
flowchart TD
    A[CentralMemoryMcp.Functions]
    A --> P[Program.cs]
    A --> SR[ServiceRegistration.cs]
    A --> F[Functions]
    F --> GF[GraphFunctions.cs]
    F --> HF[HealthFunctions.cs]
    A --> S[Services]
    S --> KGS[KnowledgeGraphService.cs]
    A --> ST[Storage]
    ST --> TSS[TableStorageService.cs]
    A --> M[Models]
    M --> GM[GraphModels.cs]
    A --> CFG[appsettings.json]
    A --> HOST[host.json]
```

## Usage Notes
- Use workspaceName consistently; workspaceId in docs replaced.
- Upsert preserves entity identity by lookup on (WorkspaceName + Name).
- Relation upsert requires entity GUIDs or resolves names; fails if names missing.

## Logging & Telemetry
Add Application Insights connection to capture request latency & storage dependency tracking (future enhancement).

## Roadmap
Add search, pagination, stats aggregation, batch operations, duplicate detection, merge strategy, semantic vector layer.

## License
[MIT](./LICENSE).

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [MWG-Logan](https://github.com/MWG-Logan)
- **Source:** [MWG-Logan/Central-Memory-MCP](https://github.com/MWG-Logan/Central-Memory-MCP)
- **License:** MIT
- **Homepage:** https://mwg-logan.github.io/Central-Memory-MCP/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-mwg-logan-central-memory-mcp
- Seller: https://agentstack.voostack.com/s/mwg-logan
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
