MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

MCP server by KTCrisis

创建于 4/8/2026
更新于 about 7 hours ago
Repository documentation and setup instructions

memory-mcp-go

A lightweight MCP server in Go that provides shared memory between AI agents. Designed to work standalone or behind agent-mesh as a governed backend.

Features

  • 4 tools: memory_store, memory_recall, memory_list, memory_forget
  • Shared state: any agent can store and recall memories via MCP
  • Tag-based filtering: organize memories with tags, filter with AND logic
  • Agent tracking: each memory records which agent stored it
  • TTL support: optional time-to-live with automatic expiration
  • Upsert: storing with an existing key updates the entry
  • JSON persistence: memories saved to a local JSON file
  • MCP stdio transport: NDJSON over stdin/stdout, compatible with any MCP client

Quick start

go build -o memory-mcp-go .
./memory-mcp-go

Configuration

| Environment variable | Default | Description | |---------------------|---------|-------------| | MEMORY_DIR | ~/.memory-mcp | Directory for the memories.json file | | MEMORY_MAX_ENTRIES | 10000 | Maximum number of stored memories |

Usage with agent-mesh

In your config.yaml:

servers:
  memory:
    transport: stdio
    command: /path/to/memory-mcp-go
    env:
      MEMORY_DIR: /tmp/shared-memory

Tools

memory_store

Store or update a memory entry (upsert by key).

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | key | string | yes | Unique key for this memory | | value | string | yes | The content to remember | | tags | string[] | no | Tags for filtering and grouping | | agent | string | no | Identifier of the storing agent | | ttl | number | no | Time-to-live in seconds (0 = permanent) |

memory_recall

Recall memories by key, tags, or agent.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | key | string | no | Exact key to recall | | tags | string[] | no | Filter by tags (AND logic) | | agent | string | no | Filter by agent identifier | | limit | number | no | Max results (default 10) |

memory_list

List memory keys with metadata (without values).

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | tags | string[] | no | Filter by tags | | agent | string | no | Filter by agent |

memory_forget

Delete memories by key or tags.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | key | string | no | Exact key to delete | | tags | string[] | no | Delete all matching entries |

Multi-agent example

Agent A (Claude)  ──store──►  memory-mcp-go  ◄──recall──  Agent B (Ollama)
                                    │
                              memories.json

Multiple agents sharing context through a common memory store, governed by agent-mesh policies.

License

MIT

快速设置
此服务器的安装指南

安装命令 (包未发布)

git clone https://github.com/KTCrisis/memory-mcp-go
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。

Cursor 配置 (mcp.json)

{ "mcpServers": { "ktcrisis-memory-mcp-go": { "command": "git", "args": [ "clone", "https://github.com/KTCrisis/memory-mcp-go" ] } } }
作者服务器
其他服务器由 KTCrisis