obsidian-graph-memory
Connects to an Obsidian vault via the Obsidian Local REST API to build an in-memory graph of notes and wikilinks, enabling tools to query related notes, find shortest paths, identify hubs and orphans, group notes by folder or tag, retrieve vault statistics, and refresh the graph.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
obsidian-graph-memory
An MCP server that exposes your Obsidian vault's graph structure as queryable tools for AI agents. It connects to the Obsidian Local REST API plugin, builds an in-memory graph of notes and wikilinks, and lets agents traverse relationships, find paths, discover hubs, and more.
Installation
As an MCP server (recommended)
Add to your Claude Code config (~/.claude.json):
{
"mcpServers": {
"graph-memory": {
"type": "stdio",
"command": "npx",
"args": ["-y", "obsidian-graph-memory"],
"env": {
"OBSIDIAN_API_KEY": "your-api-key",
"OBSIDIAN_HOST": "http://localhost:27124"
}
}
}
}Global install
npm install -g obsidian-graph-memoryRun directly
npx obsidian-graph-memoryRelated MCP server: Obsidian MCP Server
Prerequisites
Obsidian with the Local REST API plugin enabled
The REST API key from the plugin settings
Environment Variables
Variable | Required | Default | Description |
| Yes | — | API key from the Local REST API plugin |
| No |
| URL of the Obsidian REST API |
| No |
| Auto-refresh interval (e.g. |
Tools
graph_query_related
Find notes within N hops of a given note via wikilinks. Use for context expansion — "what's related to X?"
Parameter | Type | Required | Description |
| string | Yes | Name of the note (without |
| number | No | How many hops to traverse (1-3, default: 1) |
graph_find_path
Find the shortest path between two notes via wikilinks. Use to discover connections — "how does A relate to B?"
Parameter | Type | Required | Description |
| string | Yes | Starting note name |
| string | Yes | Target note name |
graph_get_hubs
Get the most connected notes in the vault. Use to find central knowledge — "what are the key topics?"
Parameter | Type | Required | Description |
| number | No | Number of top hubs to return (1-50, default: 10) |
graph_get_orphans
Get notes with zero links (neither linking to nor linked from any other note). Use to find gaps — "what's disconnected?"
No parameters.
graph_get_clusters
Group notes by folder or tag. Use for topic overview — "what topics exist in the vault?"
Parameter | Type | Required | Description |
| string | No | Group by |
graph_get_stats
Get vault-wide statistics: note count, link count, tags, orphans, etc. Quick status check.
No parameters.
graph_refresh
Manually trigger a graph rebuild from the vault. Use after batch changes to notes.
No parameters.
How It Works
On startup, the server fetches all markdown files from your vault via the Obsidian REST API
It parses each note for
[[wikilinks]]and#tags(both frontmatter and inline)An in-memory directed graph is built — nodes are notes, edges are wikilinks
Graph queries use BFS traversal following both outgoing and incoming links
The graph auto-refreshes on a configurable interval (default: 5 minutes)
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Turn your notes, links and conversations into a Living Brain your AI tools share and build on.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to read, write, search, and navigate Obsidian vault notes with support for CRUD operations, full-text search, graph navigation, daily notes, and frontmatter management.4,114 npm-
- FlicenseBqualityDmaintenanceEnables natural language interaction with Obsidian vaults, supporting intelligent search, note CRUD operations, backlink analysis, and advanced knowledge management tools like narrative path generation and note cluster detection.178-
- -licenseNot gradedqualityNot gradedmaintenanceProvides AI agents with comprehensive access to Obsidian vaults, enabling reading, writing, searching, tagging, linking, canvas manipulation, and semantic search through 41 tools.-
- AlicenseNot gradedqualityCmaintenanceEnables fast, targeted queries against an Obsidian vault knowledge graph using tools like search, neighbor traversal, and pathfinding, without needing to load the full graph into LLM context.4MIT