mcp-github-portfolio
Provides read-only tools for public GitHub data: listing public repositories for a user or organization, finding open unassigned good first issues, summarizing pull request metadata such as size, age, time to merge, and staleness, and checking API rate limits via the GitHub REST API.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-github-portfolio
A read-only Model Context Protocol server (stdio) for public GitHub data. It lets an MCP client (Claude Desktop, Claude Code, an agent) do three things:
list the public repositories of a user or organization,
find open, unassigned "good first issue" issues,
summarize the metadata of a pull request (size, age, time to merge, staleness).
Problem
Maintainers and contributors keep asking the same three questions about a GitHub account: what is public there, where can I help, and how healthy is this PR. This server answers them with small JSON results an agent can reason over, without giving the agent any write access.
It does not audit repositories (licence, CI, README checks and so on). That is out of scope on purpose.
Related MCP server: github-repos
Safety model
Only
GETrequests are sent. There is no tool that writes.Private, disabled, fork and archived repositories are filtered out by default. Private ones are never returned.
GITHUB_TOKENis optional. It only raises the rate limit (60/h anonymous, 5000/h with a token). A token with no scopes is enough.The token is only sent to the configured API origin. A
Linkheader pointing at another origin is refused.Rate limits are reported as tool errors. The server never sleeps or retries.
Install
Requires Node 20 or newer.
npm ci
npm run buildRun
node dist/index.jsThe server speaks MCP over stdio. Add it to a client, for example in an MCP config file:
{
"mcpServers": {
"github-portfolio": {
"command": "node",
"args": ["/path/to/mcp-github-portfolio/dist/index.js"],
"env": { "GITHUB_TOKEN": "optional" }
}
}
}Environment variables (see .env.example, fictitious values only):
GITHUB_TOKEN: optional, raises the rate limit.MCP_GITHUB_PORTFOLIO_OFFLINE=1: serve the bundled fixtures instead of calling api.github.com.
Tools
list_public_repos(owner,limit,sort,include_forks,include_archived)find_good_first_issues(owner,repo,label,include_assigned,limit)summarize_pull_request(owner,repo,number)get_rate_limit(no arguments, does not consume quota)
Try it with bundled sample data
npm run demo builds the project, starts the real stdio server as a child process in offline mode, and talks to it with the official SDK client. No network, no token.
Real output of npm run demo (only the npm banner lines are removed):
tools: list_public_repos, find_good_first_issues, summarize_pull_request, get_rate_limit
$ list_public_repos {"owner":"example-org","sort":"stars","limit":5}
412 stars widget-kit TypeScript
233 stars log-tail Go
96 stars data-sketch Python
12 stars docs-site -
count=4 truncated=false pagesFetched=2
$ find_good_first_issues {"owner":"example-org","limit":3}
example-org/widget-kit#131 Button focus ring is clipped inside overflow containers
example-org/log-tail#58 Add --since flag parsing tests
example-org/data-sketch#9 Document the false positive rate of the Bloom filter
$ summarize_pull_request {"owner":"example-org","repo":"widget-kit","number":42}
{
"repo": "example-org/widget-kit",
"number": 42,
"title": "Add keyboard navigation to the Tabs widget",
"url": "https://github.com/example-org/widget-kit/pull/42",
"state": "merged",
"author": "alice-dev",
"labels": [
"enhancement",
"a11y"
],
"baseBranch": "main",
"headBranch": "feature/pr-42",
"commits": 5,
"changedFiles": 6,
"additions": 187,
"deletions": 24,
"size": "M",
"comments": 4,
"reviewComments": 7,
"hasDescription": true,
"createdAt": "2026-11-10T09:00:00Z",
"updatedAt": "2026-11-12T10:30:00Z",
"ageDays": 20.1,
"hoursToMerge": 49.5,
"staleDays": null
}The fixtures are hand-written and fictitious. docs-site has no language, and the fixtures also contain a private repo, a fork and an archived repo that the output hides.
Tests
npm run lint
npm run typecheck
npm test # builds, then runs vitest53 tests, no network, no token. They cover:
pagination via
Linkheaders, limits,maxPages, truncation,rate limits (403 with remaining 0, 429,
Retry-After, mid-pagination),empty responses and unexpected body shapes,
read-only behaviour, token handling, cross-origin
Linkrefusal,the in-memory MCP transport and a real stdio end-to-end run through the SDK client.
What was tested with mocks only
All GitHub traffic in tests and in the demo goes through an injected fetcher backed by fixtures. The real fetch against api.github.com is not exercised by the test suite. The shape of real GitHub responses is assumed from the REST API documentation, so a live smoke test is the first thing to do before relying on it.
Limitations
Listing uses
/users/{owner}/repos, capped at 1000 repos (10 pages).Issue search uses the GitHub search API, which has its own tighter rate limit (10/min anonymous) and may return incomplete results.
PR summaries read metadata only. They do not read the diff or the description text.
No caching and no retries.
Not published to npm. Run it from a clone.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Unofficial GitHub MCP — wraps the GitHub public REST API (no auth required for public endpoints)
Read-only explorer for public GitHub repos, releases, issues. Demo by Sidetrip Connect. No key.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables self-hosted, read-only remote interaction with GitHub repositories, allowing listing repositories, searching code, and inspecting commits, pull requests, issues, and diffs via authenticated MCP clients.MIT
- FlicenseNot gradedqualityDmaintenanceEnables read-only browsing and querying of GitHub repositories, including listing repos, reading files, fetching READMEs, searching code, and viewing commit history via MCP.-
- AlicenseNot gradedqualityCmaintenanceGives any MCP client read-only tools for private GitHub repositories, with OAuth-based authentication and an allowlist of GitHub logins.MIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients to extract and inspect GitHub repository information, including repository summaries, directory structure, and file contents.-