Convert any GitHub repository into an MCP server
Github To MCP MCP server exists for a simple reason — assistants are far more useful when they can act on Github To MCP directly instead of describing what you should do. Convert any GitHub repository into an MCP server.
Once Github To MCP is connected, these are the calls the assistant has available:
get_readme — Retrieve the repository's README contentlist_files — List files and directories at a given pathread_file — Read the contents of a specific filesearch_code — Search for patterns across the repositoryFormat — File PatternsOpenAPI — openapi.json, openapi.yaml, swagger.json, swagger.yaml, api.json, api.yamlGraphQL — schema.graphql, *.gql, schema.jsonCursor — Cursor supports MCP servers through its settings. Add the server path in Cursor's MCP configuration panel, or edit the configuration file directly:Prerequisites — The Prerequisites tool exposed by this serverBuilding — The Building tool exposed by this serverTesting — The Testing tool exposed by this serverYou will need 2 environment variables: GITHUB_TOKEN, GITHUB_API_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
| Requirement | Version | |-------------|---------| | Node.js | 22.x or later | | pnpm | 10.x or later | | Git | 2.x or later |
@nirholas/github-to-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Github To MCP's toolset — get_readme, list_files, read_file and 8 more — is a fair guide to whether it matches your workflow. It is maintained by nirholas; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| get_readme | Retrieve the repository's README content |
| list_files | List files and directories at a given path |
| read_file | Read the contents of a specific file |
| search_code | Search for patterns across the repository |
| Format | File Patterns |
| OpenAPI | openapi.json, openapi.yaml, swagger.json, swagger.yaml, api.json, api.yaml |
| GraphQL | schema.graphql, *.gql, schema.json |
| Cursor | Cursor supports MCP servers through its settings. Add the server path in Cursor's MCP configuration panel, or edit the configuration file directly: |
| Prerequisites | The Prerequisites tool exposed by this server. |
| Building | The Building tool exposed by this server. |
| Testing | The Testing tool exposed by this server. |
{
"mcpServers": {
"github-to": {
"command": "npx",
"args": ["-y", "@nirholas/github-to-mcp"],
"env": {
"GITHUB_TOKEN": "your-value",
"GITHUB_API_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Requirement | Version | |-------------|---------| | Node.js | 22.x or later | | pnpm | 10.x or later | | Git | 2.x or later |
| Variable | Description | Required |
|---|---|---|
| GITHUB_TOKEN | Credential the server authenticates with. | Yes |
| GITHUB_API_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.