obsidian-github-mcp MCP Server

A Model Context Protocol (MCP) server that connects AI assistants to GitHub repositories containing Obsidian vaults. This server enables seamless integration with your knowledge base stored on GitHub, allowing AI…

Local serverstdioMIT

What is the obsidian-github-mcp Server?

obsidian-github-mcp source profile. From the maintainer documentation: “A Model Context Protocol (MCP) server that connects AI assistants to GitHub repositories containing Obsidian vaults. This server enables seamless integration with your knowledge base stored on GitHub, allowing AI assistants to read, search, and analyze your Obsidian notes and documentation.”

Installation

The documented npm package is obsidian-github-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares GITHUB_TOKEN, GITHUB_OWNER, GITHUB_REPO. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
getFileContentsRetrieve the contents of specific notes, documents, or files from your Obsidian vault
searchFilesEnhanced search with multiple modes:
filenameFind files by exact filename (perfect for "OKR 2025" type searches)
pathSearch anywhere in file paths
contentSearch within file contents
allComprehensive search across filenames, paths, and content
searchIssuesSearch for issues and discussions related to your knowledge base projects
getCommitHistoryTrack how your knowledge base has evolved over time with detailed commit history and diffs

How to install the obsidian-github-mcp Server

{
  "mcpServers": {
    "obsidianGithub": {
      "command": "npx",
      "args": [
        "-y",
        "obsidian-github-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "YOUR_GITHUB_TOKEN",
        "GITHUB_OWNER": "your-github-username",
        "GITHUB_REPO": "your-obsidian-vault-repo"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
GITHUB_TOKENDeclared in the maintainer’s client configuration.Check documentation
GITHUB_OWNERDeclared in the maintainer’s client configuration.Check documentation
GITHUB_REPODeclared in the maintainer’s client configuration.Check documentation