{"id":50306834,"url":"https://github.com/tiim/obsidian-graph-mcp","last_synced_at":"2026-05-28T17:01:45.641Z","repository":{"id":350763356,"uuid":"1208171967","full_name":"Tiim/obsidian-graph-mcp","owner":"Tiim","description":"MCP server to expose graph operations on notes in an obsidian vault.","archived":false,"fork":false,"pushed_at":"2026-04-11T23:26:00.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T01:17:32.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tiim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-11T23:13:15.000Z","updated_at":"2026-04-11T23:26:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Tiim/obsidian-graph-mcp","commit_stats":null,"previous_names":["tiim/obsidian-graph-mcp"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Tiim/obsidian-graph-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiim%2Fobsidian-graph-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiim%2Fobsidian-graph-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiim%2Fobsidian-graph-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiim%2Fobsidian-graph-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tiim","download_url":"https://codeload.github.com/Tiim/obsidian-graph-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiim%2Fobsidian-graph-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33617718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-28T17:01:44.490Z","updated_at":"2026-05-28T17:01:45.634Z","avatar_url":"https://github.com/Tiim.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# obsidian-graph-mcp\n\nAn MCP (Model Context Protocol) server written in Go that analyzes the link graph of an [Obsidian](https://obsidian.md) vault. It also ships a small CLI for quick one-off queries.\n\n## Features\n\n- **Shortest path** between any two notes via BFS traversal\n- **Linked notes** — outgoing and incoming links for a note\n- **Orphaned notes** — notes with no links at all\n- **Unreachable notes** — notes not reachable from a given starting note\n- **Live graph** — file-system watcher keeps the internal note-graph up to date as you edit\n- Supports wikilinks `[[Note]]`, embeds `![[Note]]`, and standard markdown links\n\n## Requirements\n\n- Go 1.25+\n- An Obsidian vault (a directory containing `.obsidian/`)\n\n## Installation\n\n```bash\ngo install github.com/tiim/obsidian-graph-mcp@latest\n```\n\nOr build from source:\n\n```bash\ngit clone https://github.com/tiim/obsidian-graph-mcp\ncd obsidian-graph-mcp\ngo build -o obsidian-graph-mcp .\n```\n\n## Usage\n\n```\nobsidian-graph-mcp [flags] \u003ccommand\u003e [args]\n\nCommands:\n  mcp                            Start the MCP server (stdio transport)\n  shortest-path \u003cfrom\u003e \u003cto\u003e      Shortest path between two notes\n  linked-notes  \u003cnote\u003e           Notes linked to/from a note\n  orphaned-notes                 Notes with no links\n  unreachable-notes \u003cnote\u003e       Notes not reachable from a starting note\n\nFlags:\n  --vault \u003cpath\u003e       Path to the Obsidian vault (defaults to current directory)\n  --ignore \u003cpattern\u003e   Glob pattern, folder, or file to exclude (repeatable)\n```\n\nAll note paths are **vault-relative** (e.g. `folder/My Note.md`).\n\n### CLI examples\n\n```bash\n# Run from inside the vault\ncd ~/Notes\nobsidian-graph-mcp shortest-path \"Daily/2024-01-01.md\" \"Projects/Big Idea.md\"\n\n# Specify vault explicitly\nobsidian-graph-mcp --vault ~/Notes orphaned-notes\n\n# Exclude folders\nobsidian-graph-mcp --vault ~/Notes --ignore \"Archive\" --ignore \"Templates\" orphaned-notes\n```\n\n### MCP server\n\nStart the server with the `mcp` command. It uses stdio transport (stdin/stdout), which is the standard for MCP clients.\n\n```bash\nobsidian-graph-mcp --vault ~/Notes mcp\n```\n\n#### Claude Desktop configuration\n\nAdd the server to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"obsidian-graph\": {\n      \"command\": \"obsidian-graph-mcp\",\n      \"args\": [\"--vault\", \"/path/to/your/vault\", \"--ignore\", \"Daily\", \"mcp\"]\n    }\n  }\n}\n```\n\n#### Claude Code configuration\n\n```bash\nclaude mcp add obsidian-graph -- obsidian-graph-mcp --vault /path/to/your/vault mcp\n```\n\n## MCP tools\n\n### `get_shortest_path`\n\nReturns the shortest path between two notes. Each step includes the direction (`forward`/`backward`) and link type.\n\n**Input:**\n| Field | Type   | Description |\n|-------|--------|-------------|\n| `from` | string | Vault-relative path of the starting note |\n| `to`   | string | Vault-relative path of the destination note |\n\n**Example output:**\n```json\n[\n  { \"from\": \"Daily/2024-01-01.md\", \"to\": \"Projects/Big Idea.md\", \"direction\": \"forward\", \"type\": \"wikilink\" },\n  { \"from\": \"Projects/Big Idea.md\", \"to\": \"People/Alice.md\", \"direction\": \"forward\", \"type\": \"wikilink\" }\n]\n```\n\n---\n\n### `get_linked_notes`\n\nReturns all notes a given note links to (outgoing) and all notes that link to it (incoming).\n\n**Input:**\n| Field  | Type   | Description |\n|--------|--------|-------------|\n| `note` | string | Vault-relative path of the note |\n\n**Example output:**\n```json\n{\n  \"links_to\": [\n    { \"note\": \"Projects/Big Idea.md\", \"link_type\": \"wikilink\" }\n  ],\n  \"linked_from\": [\n    { \"note\": \"Daily/2024-01-02.md\", \"link_type\": \"wikilink\" }\n  ]\n}\n```\n\n---\n\n### `get_orphaned_notes`\n\nReturns all real notes that have neither incoming nor outgoing links.\n\n**Example output:**\n```json\n{\n  \"orphans\": [\"Scratch/untitled.md\", \"inbox/random thought.md\"]\n}\n```\n\n---\n\n### `get_unreachable_notes`\n\nReturns all real notes that cannot be reached from the given starting note via any chain of links (traversal is undirected).\n\n**Input:**\n| Field  | Type   | Description |\n|--------|--------|-------------|\n| `from` | string | Vault-relative path of the starting note |\n\n**Example output:**\n```json\n{\n  \"from\": \"Home.md\",\n  \"unreachable\": [\"Archive/old-project.md\", \"Scratch/draft.md\"]\n}\n```\n\n## Development\n\n```bash\ngo build ./...   # Build\ngo test ./...    # Run tests\ngo vet ./...     # Lint\ngo mod tidy      # Sync dependencies\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiim%2Fobsidian-graph-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiim%2Fobsidian-graph-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiim%2Fobsidian-graph-mcp/lists"}