Memory MCP Server
Provides persistent memory capabilities through a knowledge graph stored in a local JSON file. Enables AI agents to create, read, update, and delete entities and their relationships. Useful for maintaining context across conversations, storing user preferences, and building structured knowledge bases that persist between sessions.
连接
将此配置添加到 .claude/mcp.json
{
"mcpServers": {
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
}
}
}工具 (5)
create_entities
Create multiple new entities in the knowledge graph with their types and observations.
{
"type": "object",
"required": [
"entities"
],
"properties": {
"entities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"entityType": {
"type": "string"
},
"observations": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"description": "Array of entities to create"
}
}
}create_relations
Create relationships between existing entities in the knowledge graph.
{
"type": "object",
"required": [
"relations"
],
"properties": {
"relations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
},
"relationType": {
"type": "string"
}
}
},
"description": "Array of relations to create"
}
}
}search_nodes
Search for entities in the knowledge graph by name or observation content.
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "Search query to match against entity names and observations"
}
}
}open_nodes
Retrieve specific entities by their exact names from the knowledge graph.
{
"type": "object",
"required": [
"names"
],
"properties": {
"names": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of entity names to retrieve"
}
}
}delete_entities
Remove entities and their associated relations from the knowledge graph.
{
"type": "object",
"required": [
"entityNames"
],
"properties": {
"entityNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "Names of entities to delete"
}
}
}资源
此服务器未提供任何资源。
提示词
此服务器未提供任何提示词。
服务器信息
- 许可证
- Apache-2.0
- 版本
- 2026.1.26
- 星标
- 86,206
- 最后更新
- 2026年1月27日