Token导航 LogoToken导航TokenDH.com
MCP Local Project Memory logo
AI代理stdio官方级别未说明来源级核验

MCP Local Project Memory

MCP Server

一个用于存储和检索项目特定上下文和记忆的MCP服务器,使AI助手能够在不同会话间保持对项目的持久知识。

工具数

7

提示词数

0

GitHub Stars

1

资源数

0
PythonClaude元数据管理Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

phaezer

提供方

phaezer

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install -e .

详细介绍

Local Project Memory MCP Server

A Model Context Protocol (MCP) server for storing and retrieving project-specific context and memories for LLMs. This server enables AI assistants to maintain persistent knowledge about your project across sessions.

Features

  • Store Memories: Save project context as markdown files with metadata
  • Retrieve Memories: Access stored information by filename
  • Search Memories: Find relevant context using keyword search
  • List Memories: Browse all stored memories with optional tag filtering
  • Update Memories: Modify existing memories while preserving metadata
  • Delete Memories: Remove outdated or irrelevant memories
  • Memory Instructions: Get guidance on how to use the memory system

Installation

From Source

cd local-project-memory
pip install -e .

Development Installation

pip install -e ".[dev]"

Configuration

The server stores memories in .ai/context/memories/ within your project directory. Each memory is saved as a markdown file with frontmatter containing metadata:

---
title: Memory Title
created: 2025-01-15T10:30:00
tags: tag1, tag2
---

Memory content goes here...

Usage

Running the Server

local-project-memory

Or with Python:

python -m local_project_memory

Testing with MCP Inspector

npx @modelcontextprotocol/inspector local-project-memory

Adding to Claude Desktop

Edit your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the server configuration:

{
  "mcpServers": {
    "local-project-memory": {
      "command": "local-project-memory"
    }
  }
}

Or if installed with uvx:

{
  "mcpServers": {
    "local-project-memory": {
      "command": "uvx",
      "args": ["local-project-memory"]
    }
  }
}

Restart Claude Desktop to load the server.

Available Tools

store_memory

Store a new memory with title, content, and optional tags.

Parameters:

  • title (string): Title/name for the memory
  • content (string): Content to store
  • tags (string, optional): Comma-separated tags

retrieve_memory

Retrieve a memory by filename.

Parameters:

  • filename (string): Filename of the memory to retrieve

list_memories

List all stored memories with optional tag filtering.

Parameters:

  • tag_filter (string, optional): Filter memories by tag

search_memories

Search through all memories for a query string.

Parameters:

  • query (string): Search query

update_memory

Update an existing memory's content.

Parameters:

  • filename (string): Filename of the memory to update
  • content (string): New content

delete_memory

Delete a memory file.

Parameters:

  • filename (string): Filename of the memory to delete

get_memory_instructions

Get instructions on how to interact with the memory system.

Development

Running Tests

pytest

Code Formatting

black src tests
ruff check src tests

Type Checking

mypy src

Project Structure

local-project-memory/
├── src/
│   └── local_project_memory/
│       ├── __init__.py
│       ├── __main__.py
│       ├── server.py          # Main server setup
│       ├── config.py          # Configuration management
│       └── tools/
│           └── __init__.py    # Memory management tools
├── tests/
│   ├── __init__.py
│   ├── conftest.py           # Test fixtures
│   └── test_tools.py         # Tool tests
├── pyproject.toml            # Project metadata and dependencies
├── pytest.ini                # Pytest configuration
└── README.md                 # This file

Memory Storage

Memories are stored locally in your project at:

.ai/context/memories/

Each memory file follows the naming convention:

YYYYMMDD-HHMMSS-memory-title.md

Instructions for the memory system are stored at:

.ai/context/memory-instructions.md

Use Cases

  • Project Context: Store architectural decisions, patterns, and conventions
  • Code Knowledge: Document complex implementations and their rationale
  • API Documentation: Keep track of external APIs and their usage
  • Best Practices: Record project-specific guidelines and standards
  • Issue Tracking: Maintain notes about known issues and their solutions
  • Session Continuity: Share context between different AI assistant sessions

License

MIT

目录标签

目录标签

PythonClaude元数据管理项目记忆管理本地部署上下文存储AI助手支持知识持久化

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

工具数量(toolCount,工具数)

7

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP