# Hint-Services-obsidian-github-mcp

Connects an AI assistant to an Obsidian vault stored in GitHub, so it can retrieve notes, search files, and inspect repository history.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 10
- Author: Hint-Services
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Hint-Services/obsidian-github-mcp
- Updated: 2025-11-28
- HTML: https://affpapa.org/en/nevibecode/mcp/hint-services-obsidian-github-mcp

## What it does

This MCP server connects an AI assistant to a GitHub repository that contains an Obsidian vault. Its tools can fetch a note with `getFileContents`, search by filename, path, content, or all three through `searchFiles`, find related GitHub issues, and inspect commit history with diffs through `getCommitHistory`.

Setup requires `GITHUB_TOKEN`, `GITHUB_OWNER`, and `GITHUB_REPO`. Use a token with `repo` for a private repository or `public_repo` for a public one; organization repositories also require `read:org`. Without these variables, the server cannot reach the vault.

Claude Code connects through the Smithery HTTP endpoint. The implementation uses TypeScript, validates API inputs with Zod schemas, and includes error handling for failed requests.

## Requirements
- Remote server: `https://server.smithery.ai/@Hint-Services/obsidian-github-mcp/mcp`
- Works with: GitHub, Obsidian

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http hint-services-obsidian-github-mcp https://server.smithery.ai/@Hint-Services/obsidian-github-mcp/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add hint-services-obsidian-github-mcp --url https://server.smithery.ai/@Hint-Services/obsidian-github-mcp/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "hint-services-obsidian-github-mcp": {
            "url": "https://server.smithery.ai/@Hint-Services/obsidian-github-mcp/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "hint-services-obsidian-github-mcp": {
            "type": "http",
            "url": "https://server.smithery.ai/@Hint-Services/obsidian-github-mcp/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http hint-services-obsidian-github-mcp https://server.smithery.ai/@Hint-Services/obsidian-github-mcp/mcp
```

## When to use it
- locate a note by its filename
- retrieve a Markdown file from the vault
- inspect changes made to notes
- search project issues alongside documentation

## Example prompts
- Use `searchFiles` to find vault files whose name contains `OKR 2025`.
- Read `Daily Notes/2024-01-15.md` with `getFileContents`.
- Use `getCommitHistory` to show how the vault changed and include diffs.

## Similar
- [obsidian](https://affpapa.org/en/nevibecode/skills/bitbonsai-obsidian.md) — skill · 1600 installs
- [obsidian-canvas-creator](https://affpapa.org/en/nevibecode/skills/obsidian-canvas-creator.md) — skill · 2000 installs
- [cli-anything-obsidian](https://affpapa.org/en/nevibecode/skills/cli-anything-obsidian.md) — skill · 928 installs
- [obsidian-markdown](https://affpapa.org/en/nevibecode/skills/agricidaniel-obsidian-markdown.md) — skill · 545 installs
- [obsidian-project-kb-core](https://affpapa.org/en/nevibecode/skills/obsidian-project-kb-core.md) — skill · 323 installs
- [obsidian-source-ingestion](https://affpapa.org/en/nevibecode/skills/obsidian-source-ingestion.md) — skill · 320 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
