Github To MCP Server

Convert any GitHub repository into an MCP server

Local serverstdioPython

What is the Github To MCP Server?

Convert any GitHub repository into an MCP server

Configuration and credentials

| Requirement | Version | |-------------|---------| | Node.js | 22.x or later | | pnpm | 10.x or later | | Git | 2.x or later |

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_readmeRetrieve the repository's README content
list_filesList files and directories at a given path
read_fileRead the contents of a specific file
search_codeSearch for patterns across the repository

How to install the Github To MCP 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.

Configuration

| Requirement | Version | |-------------|---------| | Node.js | 22.x or later | | pnpm | 10.x or later | | Git | 2.x or later |

VariableDescriptionRequired
GITHUB_TOKENCredential the server authenticates with.Yes
GITHUB_API_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Github To MCP to get readme.”
  • “Use Github To MCP to list files.”
  • “Use Github To MCP to read file.”

Frequently asked questions

Convert any GitHub repository into an MCP server Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.