graphmind
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@graphmindRemember that Alice lives in Lisbon and works at Acme"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
graphmind
graphmind is a small, durable memory for agents: a knowledge graph you can build up a fact at a time and query back later. You record entities — people, places, projects, anything with a name — each with a type and a growing list of plain-text observations, and you connect them with typed relations ("Alice — lives_in → Lisbon"). The whole graph lives in one JSON file on disk, so the memory survives restarts and stays readable, diffable, and editable by hand.
There is no database to run and no service to sign up for. The graph file is the product.
Install
npx @reneturcios/graphmind readOr run the container image:
docker run -i ghcr.io/cloudcorprecords/graphmindThe container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead. If you run the container, mount a volume over the working directory if you want the graph file to persist between runs.
Related MCP server: Graforest MCP
Where the graph lives
The store file path comes from the GRAPHMIND_FILE environment
variable and defaults to ./graphmind.json in the current working
directory. The file is loaded when the server (or a CLI command)
starts, and it is rewritten after every change, so what is on disk is
always the full current graph:
{
"entities": [
{ "name": "Alice", "entityType": "person", "observations": ["Lives in Lisbon"] }
],
"relations": [
{ "from": "Alice", "to": "Lisbon", "relationType": "lives_in" }
]
}CLI
The CLI is a read/inspect face over the same store file the MCP server writes:
# Print the whole graph as JSON
graphmind read
# Print the subgraph matching a search term
graphmind search lisbon
# Point at a specific store file
GRAPHMIND_FILE=~/notes/graph.json graphmind read
graphmind --versionExit codes: 0 on success, 1 when the store cannot be read or
written, 2 for usage errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
npx -y @reneturcios/graphmind mcpMCP client configuration:
{
"mcpServers": {
"graphmind": {
"command": "npx",
"args": ["-y", "@reneturcios/graphmind", "mcp"],
"env": { "GRAPHMIND_FILE": "/path/to/graphmind.json" }
}
}
}Tools
Tool | Input | What it does |
|
| Adds entities whose names are not already taken. Existing names are skipped and the stored entity is left untouched. Returns only the entities actually created. |
|
| Adds relations whose exact triple is not already present. Returns only the relations actually created. |
|
| Appends observation strings to existing entities, skipping strings the entity already has. Returns what was added, per entity. |
|
| Removes the named entities and every relation that touches any of them. |
|
| Removes the listed observation strings from the named entities. |
|
| Removes relations matching the given exact triples. |
| (none) | Returns the entire graph: all entities and all relations. |
|
| Case-insensitive substring search over entity names, types, and observations. Returns the matching entities plus the relations whose endpoints both matched. |
|
| Returns the named entities plus the relations between them. Unknown names are skipped. |
Behaviour worth knowing
Names are identity. An entity is its name; creating a second entity with the same name does nothing. Rename by deleting and recreating.
Relations need real endpoints.
create_relationsrequires both thefromandtoentities to already exist, and fails the whole call if one is missing — no stub entities are invented, so a typo surfaces immediately instead of quietly corrupting the graph.Observations are a set, in order. Adding a string an entity already carries is a no-op; new strings append in the order given.
Deletes cascade only from entities. Deleting an entity removes its relations; deleting observations or relations never touches anything else.
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network
npm run dev # run the CLI from source via tsxLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
- GoMindOAuthcom.gominddb
Persistent knowledge graph for AI agents. Remember, recall, and forget facts.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Shared long-term memory for AI agents: save and recall context as a searchable knowledge graph.
Persistent working memory for AI agents: a knowledge graph with semantic search and decay.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides persistent memory for Claude by implementing a local knowledge graph to store and retrieve entities, relations, and observations. This enables long-term information retention and personalization across different chat sessions.231,505 npmMIT
- FlicenseAqualityCmaintenanceEnables AI agents to build, populate, and search knowledge graphs by providing tools for entity extraction, relationship mapping, and graph traversal. It manages the underlying database infrastructure so users can create searchable knowledge bases from text through natural language commands.131-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to persist and retrieve structured thinking graphs using SQLite-backed memory with support for CRUD operations, graph search, and path finding.1-
- AlicenseNot gradedqualityDmaintenanceProvides persistent knowledge graph memory for AI agents, enabling them to store, recall, and query facts about people, projects, and relationships across sessions.MIT