# GitHub MCP：讓 AI 直接讀GitHub資料

> 讓 Claude、Cursor 等 MCP 客戶端直接取GitHub資料：6 個介面，每次 $0.002 起，不用登入GitHub。AI 自己找介面、報價、取數。

網頁版：https://okdata.online/zh-hant/mcp/github/

## 一句話接進你的 AI

```text
按 https://okdata.online/agents.md 的步驟，幫我在這個 agent 裡裝好 okdata。我的 okdata API Key：okd_…，請妥善儲存，之後呼叫 okdata 都用它。
```

## 能回答什麼

| 問題 | 介面 | 價格 |
|---|---|---|
| GitHub 倉庫詳情：一個公開 GitHub 倉庫的詳情：簡介、Star 數、Fork 數、未關閉 Issue 數、主要語言、許可證、主題標籤、主頁，以及建立和最近推送時間。 | [github.repos.get](https://okdata.online/zh/apis/github/repos/get/) | $0.002/次 |
| GitHub 帳號的倉庫：一個 GitHub 帳號或組織的公開倉庫：名稱、簡介、Star 數、Fork 數、語言，以及建立和最近推送時間。 | [github.users.repos.list](https://okdata.online/zh/apis/github/users/repos/list/) | $0.002/次 · 每頁約 30 條帖子 |
| GitHub 熱門倉庫：GitHub 當日熱門倉庫榜單，按名次排列：名稱、簡介、語言、總 Star 數和當日新增 Star 數。 | [github.repos.trending](https://okdata.online/zh/apis/github/repos/trending/) | $0.002/次 · 每頁約 25 條帖子 |
| GitHub 倉庫的 Issue 和 PR：公開倉庫的 Issue 和 Pull Request，最新的在前：標題、正文、狀態、標籤、評論數、表情回應數、作者和日期。 | [github.repos.issues.list](https://okdata.online/zh/apis/github/repos/issues/list/) | $0.002/次 · 每頁約 30 條帖子 |
| GitHub Issue 搜尋：按關鍵詞搜尋所有公開 GitHub 倉庫的 Issue 和 Pull Request：標題、正文、狀態、所在倉庫、評論數、表情回應數、作者和日期。 | [github.issues.search](https://okdata.online/zh/apis/github/issues/search/) | $0.004/次 · 每頁約 30 條帖子 |
| GitHub Issue 評論：一個 Issue 或 Pull Request 下的評論，從早到晚：正文、表情回應數、作者和日期。 | [github.issues.comments.list](https://okdata.online/zh/apis/github/issues/comments/list/) | $0.002/次 · 每頁約 30 條評論 |

## 兩次呼叫

1. `find {"query":"GitHub 帳號的倉庫"}`：免費
2. `call {"capability":"github.users.repos.list","username":"vercel"}`：$0.002/次 · 每頁約 30 條帖子

## Skill 包

- `okdata-github`：https://okdata.online/.well-known/agent-skills/okdata-github/SKILL.md · https://okdata.online/skills/okdata-github.zip

[GitHub全部介面](https://okdata.online/zh/apis/github/) · [MCP 服務](https://okdata.online/zh/mcp/) · [接入指南](https://okdata.online/zh/integrations/)
