modelscope·@BurtTheCoder/mcp-mem.ai
暂无描述。
A production-ready Model Context Protocol (MCP) server that provides AI assistants with intelligent access to Mem.ai's knowledge management platform.
git clone https://github.com/yourusername/mcp-mem.ai.git
cd mcp-mem.ai
pip install -e .
cp .env.example .env
# Edit .env and add your MEM_API_KEY
fastmcp run src/mcp_mem/server.py
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"mem": {
"command": "python",
"args": ["-m", "mcp_mem.server"],
"env": {
"MEM_API_KEY": "your_api_key_here"
}
}
}
}
from mcp_mem import mcp
# Run the server
mcp.run()
mem_it - Intelligent Content ProcessingSave and automatically process any content type with AI-powered organization.
Parameters:
input (required): Content to save (text, HTML, markdown, etc.)instructions (optional): Processing instructionscontext (optional): Additional context for organizationtimestamp (optional): ISO 8601 timestampExample:
mem_it(
input="Just had a great meeting with the product team about Q1 roadmap...",
instructions="Extract key action items and decisions",
context="Product Planning"
)
create_note - Create Structured NoteCreate a markdown-formatted note with explicit control over content and organization.
Parameters:
content (required): Markdown-formatted contentcollection_ids (optional): List of collection UUIDscollection_titles (optional): List of collection titlesExample:
create_note(
content="""# Team Standup - Jan 15, 2024
## Completed
- Feature X shipped to production
- Bug fixes for issue #123
## In Progress
- Working on Feature Y
- Code review for PR #456
## Blockers
- Waiting for API access
""",
collection_titles=["Team Meetings", "Engineering"]
)
read_note - Read NoteRetrieve a note's full content and metadata by ID.
Parameters:
note_id (required): UUID of the noteExample:
read_note("01961d40-7a67-7049-a8a6-d5638cbaaeb9")
delete_note - Delete NotePermanently delete a note by ID.
Parameters:
note_id (required): UUID of the noteExample:
delete_note("01961d40-7a67-7049-a8a6-d5638cbaaeb9")
create_collection - Create CollectionCreate a new collection to organize related notes.
Parameters:
title (required): Collection titledescription (optional): Markdown-formatted descriptionExample:
create_collection(
title="Project Apollo",
description="""# Project Apollo
All notes related to the Apollo project including:
- Meeting notes
- Technical specifications
- Customer feedback
"""
)
delete_collection - Delete CollectionDelete a collection (notes remain, just unassociated).
Parameters:
collection_id (required): UUID of the collectionExample:
delete_collection("5e29c8a2-c73b-476b-9311-e2579712d4b1")
Configuration is done via environment variables. Copy .env.example to .env and customize:
# Required: Your Mem.ai API key
MEM_API_KEY=your_api_key_here
# Optional: Custom API endpoint (default: https://api.mem.ai/v2)
MEM_API_BASE_URL=https://api.mem.ai/v2
# Optional: Request timeout in seconds (default: 30)
MEM_REQUEST_TIMEOUT=30
# Optional: Enable debug logging (default: false)
MEM_DEBUG=false
src/mcp_mem/
__init__.py # Package initialization
models.py # Pydantic data models
client.py # Mem.ai API client
server.py # MCP server implementation
models.py: Pydantic models for request/response validationclient.py: Async HTTP client wrapper for Mem.ai APIserver.py: FastMCP server with tool implementationsRun the test suite:
# Install dev dependencies
pip install -e ".[dev]"
# Run all tests
pytest
# Run with coverage
pytest --cov=mcp_mem --cov-report=html
# Run specific test file
pytest tests/test_client.py
The server provides clear, actionable error messages:
MemAuthenticationError: Invalid or missing API keyMemNotFoundError: Resource (note/collection) not foundMemValidationError: Invalid request parametersMemAPIError: General API errorsAll errors are logged and returned with helpful context to the AI assistant.
See the examples/ directory for complete usage examples:
basic_usage.py: Simple examples of each tooladvanced_usage.py: Complex workflows and patternsContributions are welcome! Please feel free to submit a …
通过全局和分支特定的记忆库,管理跨 Claude AI 会话的项目文档和上下文的服务器,通过结构化的 JSON 文档存储实现一致的知识管理。
该服务器允许用户通过自定义URI方案存储、管理和总结笔记,具有添加新笔记以及生成详细程度不同的摘要的功能。
一个高性能的MCP服务器,将Notion集成到AI工作流中,通过标准化协议实现与Notion页面、数据库和评论的交互。
用于Notion API的MCP服务器,使Claude能够与Notion工作区进行交互。
通过简单的消息控制协议接口,使人工智能助手能够搜索和访问arXiv研究论文,从而实现论文的搜索、下载、列出和阅读功能。
通过模型上下文协议,启用大型语言模型(LLMs)与Obsidian仓库之间的交互,支持安全的文件操作、内容管理和高级搜索功能。