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 集成