Github Pages MCP Server

MCP server for managing GitHub Pages deployments

Local serverstdio

What is the Github Pages MCP server?

Connect Github Pages to Claude, Cursor or any other MCP client and it stops being a tab you switch to. MCP server for managing GitHub Pages deployments. The github pages mcp server is what makes that connection.

What the server does

A Model Context Protocol (MCP) server for managing GitHub Pages deployments. This server provides tools to enable, configure, deploy, and manage GitHub Pages sites through the MCP protocol.

  • enable_github_pages — - Enable GitHub Pages for a repository with custom source and build settings
  • get_github_pages_info — - Get current GitHub Pages configuration and deployment status
  • deploy_to_github_pages — - Deploy files directly to GitHub Pages branch
  • disable_github_pages — - Disable GitHub Pages for a repository
  • update_github_pages_config — - Update GitHub Pages configuration (source, build type, custom domain)

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • enable_github_pages — The enable_github_pages tool exposed by this server
  • get_github_pages_info — The get_github_pages_info tool exposed by this server
  • deploy_to_github_pages — The deploy_to_github_pages tool exposed by this server
  • disable_github_pages — The disable_github_pages tool exposed by this server
  • update_github_pages_config — The update_github_pages_config tool exposed by this server
  • Building — The Building tool exposed by this server
  • Linting — The Linting tool exposed by this server

Installation

npm on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Credentials and setup notes

Configuration is passed through the environment: GITHUB_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js >= 18.0.0 - GitHub Personal Access Token with repo permissions

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Github Pages's toolset — enable_github_pages, get_github_pages_info, deploy_to_github_pages and 4 more — is a fair guide to whether it matches your workflow. It is maintained by ajaychinthapalli; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
enable_github_pagesThe enable_github_pages tool exposed by this server.
get_github_pages_infoThe get_github_pages_info tool exposed by this server.
deploy_to_github_pagesThe deploy_to_github_pages tool exposed by this server.
disable_github_pagesThe disable_github_pages tool exposed by this server.
update_github_pages_configThe update_github_pages_config tool exposed by this server.
BuildingThe Building tool exposed by this server.
LintingThe Linting tool exposed by this server.

How to install the Github Pages MCP server

{
  "mcpServers": {
    "github-pages": {
      "command": "node",
      "args": ["/path/to/github-pages-mcp-server/dist/index.js"],
      "env": {
        "GITHUB_TOKEN": "your_github_token_here"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js >= 18.0.0 - GitHub Personal Access Token with repo permissions
VariableDescriptionRequired
GITHUB_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Github Pages to enable github pages.
  • Use Github Pages to get github pages info.
  • Use Github Pages to deploy to github pages.

Frequently asked questions

It connects Github Pages to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (enable_github_pages, get_github_pages_info, deploy_to_github_pages, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Github Pages directly.