AI 开源雷达

nirholas/github-to-mcp

把任意 GitHub 仓库转成 MCP 服务器,让 AI 直接访问代码库

★ 35 最近提交: 0d 传输方式: stdio / http 仓库地址 ↗

解决什么问题

没有它,只能手动向 AI 描述 API 或粘贴代码片段,AI 无法结构化地浏览仓库。

适用客户端

安装命令

npx @nirholas/github-to-mcp https://github.com/stripe/stripe-node
npx tsc --noEmit

一键配置

{
  "mcpServers": {
    "my-repo": {
      "command": "node",
      "args": [
        "/absolute/path/to/generated/server.mjs"
      ],
      "env": {
        "GITHUB_TOKEN": "ghp_xxxx"
      }
    }
  }
}
{
  "mcpServers": {
    "github-to-mcp": {
      "type": "http",
      "url": "https://modelcontextprotocol.name/mcp/github-to-mcp"
    }
  }
}

要用 VS Code / Codex 格式?去配置互转 →

安全标记

维护状态

最近提交2026-12-06(0d)
Star35
待处理 issue0
协议—
已归档否
数据抓取于2026-12-06

原文摘录

以下为仓库 README 原文,未做改写,用于核对上面的摘要。

Convert any GitHub repository into an MCP server in seconds

同类替代