Hint Services Obsidian Github Mcp

ai.smithery由 smithery.ai 發布官方發布者v0.4.0更新於 Oct 24, 2026

Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…

發布方自己的服務:222wcnm Bilistalkermcp

已驗證Streamable HTTP可網頁執行知識與記憶開發者工具

概覽

AI 產生的概覽

讓助理讀取、搜尋並分析存放在 GitHub 儲存庫中的 Obsidian 筆記庫,包括檔案內容、搜尋結果、議題和提交歷史

可以做什麼
將助理連接到存放 Obsidian 筆記庫的 GitHub 儲存庫。工具包括 getFileContents 用來取得指定筆記或文件內容,searchFiles 支援依檔名、路徑、內容或全部範圍搜尋,searchIssues 用來尋找相關議題和討論,getCommitHistory 用來檢視一段時間內的提交記錄和差異。README 稱其以 TypeScript 撰寫,並具備輸入驗證和錯誤處理。
適用情境
當你的筆記、研究資料或文件存放在由 GitHub 代管的 Obsidian 筆記庫中,並希望助理取出特定筆記、跨庫搜尋或追蹤筆記變化時適用。也適合將共用知識庫與 GitHub 議題結合用於專案規劃的團隊。
執行需求
清單顯示為 server.smithery.ai 上的遠端 streamable HTTP 端點,需要在 Authorization 標頭中提供 bearer 權杖。README 的手動安裝方式則是在本機執行 npm 套件 obsidian-github-mcp,需要 GITHUB_TOKEN、GITHUB_OWNER 和 GITHUB_REPO;權杖需具備 repo 或 public_repo 權限,存取組織儲存庫還需 read:org。
安裝前請注意
GitHub 權杖會授予儲存庫存取權限,應盡量縮小範圍並優先使用唯讀權限。README 要求 repo 權限,範圍大於 public_repo,可能涵蓋私有儲存庫。Authorization 標頭中的 Smithery bearer 權杖同樣是需要保護的憑證。另請注意,清單與 README 描述的部署和設定方式並不相同。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Hint Services Obsidian Github Mcp,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/ai.smithery%2FHint-Services-obsidian-github-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "hint-services-obsidian-github": {
      "type": "http",
      "url": "https://server.smithery.ai/@Hint-Services/obsidian-github-mcp/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

[smithery badge] [npm version]

Obsidian GitHub MCP

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.

Why This Tool?

Many Obsidian users store their vaults in GitHub for backup, versioning, and collaboration. This MCP server bridges the gap between your GitHub-hosted Obsidian vault and AI assistants, enabling:

  • Knowledge Base Access: Retrieve specific notes and documents from your Obsidian vault
  • Intelligent Search: Find relevant content across your entire knowledge base
  • Evolution Tracking: See how your ideas and notes have developed over time
  • Task Integration: Connect with issues and project management workflows

Features

  • GitHub Repository Access: Connect to any GitHub repository containing your Obsidian vault
  • Type-Safe Implementation: Written in TypeScript with comprehensive type definitions
  • Input Validation: Robust validation for all API inputs using Zod schemas
  • Error Handling: Graceful error handling with informative messages
  • MCP Integration: Full compatibility with Claude, Cursor, Windsurf, Cline, and other MCP hosts

Available Tools

Knowledge Base Access

  • getFileContents: Retrieve the contents of specific notes, documents, or files from your Obsidian vault
  • searchFiles: Enhanced search with multiple modes:
    • filename: Find files by exact filename (perfect for "OKR 2025" type searches)
    • path: Search anywhere in file paths
    • content: Search within file contents
    • all: Comprehensive search across filenames, paths, and content

Project Management Integration

  • searchIssues: Search for issues and discussions related to your knowledge base projects
  • getCommitHistory: Track how your knowledge base has evolved over time with detailed commit history and diffs

Use Cases

For Knowledge Workers

  • Research Assistant: AI can access your research notes and reference materials
  • Writing Support: Pull relevant background information from your knowledge base
  • Idea Development: Track how concepts have evolved across your notes

For Developers

  • Documentation Access: Retrieve project documentation and technical notes
  • Learning Journals: Access your learning notes and code examples
  • Project Planning: Integrate with GitHub issues for comprehensive project management

For Students & Academics

  • Study Materials: Access lecture notes and study guides
  • Research Papers: Retrieve research notes and citations
  • Collaboration: Work with shared knowledge bases stored in GitHub

Installation

Using Smithery (Recommended)

The easiest way to install Obsidian GitHub MCP is using Smithery:

bash
# For Claude Desktopnpx -y @smithery/cli install @Hint-Services/obsidian-github-mcp --client claude
# For Cursornpx -y @smithery/cli install @Hint-Services/obsidian-github-mcp --client cursor
# For Windsurfnpx -y @smithery/cli install @Hint-Services/obsidian-github-mcp --client windsurf
# For Clinenpx -y @smithery/cli install @Hint-Services/obsidian-github-mcp --client cline

Manual Installation

bash
npm install obsidian-github-mcp

Configuration

Add the server to your MCP settings file with the following configuration:

json
{  "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"      }    }  }}

Required Environment Variables

  • GITHUB_TOKEN: Your GitHub personal access token (create one here)
  • GITHUB_OWNER: The owner/organization of the GitHub repository
  • GITHUB_REPO: The name of the repository containing your Obsidian vault

GitHub Token Permissions

Your GitHub token needs the following permissions:

  • repo (for private repositories) or public_repo (for public repositories)
  • read:org (if accessing organization repositories)

Example Workflows

Accessing Your Daily Notes

json
{  "tool": "getFileContents",  "arguments": {    "filePath": "Daily Notes/2024-01-15.md"  }}

Finding Files by Name (Perfect for "OKR 2025" example!)

json
{  "tool": "searchFiles",  "arguments": {    "query": "OKR 2025",    "searchIn": "filename"  }}

Finding Files by Path

json
{  "tool": "searchFiles",  "arguments": {    "query": "Daily Notes",    "searchIn": "path"  }}

Finding Research on a Topic (Content Search)

json
{  "tool": "searchFiles",  "arguments": {    "query": "machine learning algorithms",    "searchIn": "content",    "perPage": 10  }}

Comprehensive Search (Filename, Path, and Content)

json
{  "tool": "searchFiles",  "arguments": {    "query": "project planning",    "searchIn": "all"  }}

Advanced GitHub Search Syntax

json
{  "tool": "searchFiles",  "arguments": {    "query": "path:*.md extension:md",    "searchIn": "content"  }}

Tracking Knowledge Evolution

json
{  "tool": "getCommitHistory",  "arguments": {    "days": 30,    "includeDiffs": true,    "maxCommits": 10  }}

Search Tips & Troubleshooting

Can't Find Your File by Name?

Problem: Searching for "OKR 2025" doesn't find your file named "OKR 2025.md"

Solution: Use the searchIn: "filename" parameter:

json
{  "tool": "searchFiles",  "arguments": {    "query": "OKR 2025",    "searchIn": "filename"  }}

Advanced Search Techniques

  1. Exact Phrases: Use quotes for multi-word searches

    json
    {  "query": "\"project planning 2025\"",  "searchIn": "content"}
  2. File Extensions: Find specific file types

    json
    {  "query": "path:*.md",  "searchIn": "content"}
  3. Directory Specific: Search within folders

    json
    {  "query": "path:\"Daily Notes/\"",  "searchIn": "content"}

Project Structure

obsidian-github-mcp/├── src/│   ├── index.ts          # Main MCP server entry point│   └── github/           # GitHub API integration│       ├── client.ts     # GitHub client implementation│       └── types.ts      # TypeScript type definitions├── docs/                 # Documentation├── package.json          # Project configuration└── tsconfig.json         # TypeScript configuration

For Developers

If you're interested in contributing to this project or developing your own tools with this server, please see the Development Guide.

Development Commands

  • pnpm install - Install dependencies
  • pnpm run build - Build the project
  • pnpm run dev - Run in development mode with inspector
  • pnpm run inspector - Launch MCP inspector for testing

Migration from mcp-private-github-search

If you're migrating from the older mcp-private-github-search package:

  1. Update your package name in configuration:

    json
    {  "mcpServers": {    "obsidianGithub": {      "command": "npx",      "args": ["-y", "obsidian-github-mcp"]    }  }}
  2. The functionality remains the same - all existing tools work identically

  3. Consider the new Obsidian-focused use cases and workflows

Learn More

For further information on the MCP ecosystem, refer to:

About Hint Services

"The future is already here, it's just unevenly distributed"

— William Gibson, Author

Hint Services is a boutique consultancy with a mission to develop and expand how user interfaces leverage artificial intelligence technology. We architect ambition at the intersection of AI and User Experience, founded and led by Ben Hofferber.

We offer specialized AI workshops for design teams looking to embrace AI tools without becoming developers. Learn more about our training and workshops.

來源:README.md,提交 f5397b6

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v0.4.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Smithery 整合