github-repo-manager-mcp
Manages GitHub repositories, including creating, updating, deleting, archiving, pinning, renaming, and file operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@github-repo-manager-mcp Create a new private repo called 'my-project' with a README"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub Repo Manager MCP
This MCP server lets an AI client manage GitHub repositories through the GitHub REST and GraphQL APIs.
What This MCP Tool Can Do
Create new repositories
Update repo details, including description, homepage, topics/tags, and visibility
Delete repositories
Add topics/labels to repos for organization
List all repos with filters
Rename repositories
Archive old repos
Pin repositories via the GitHub GraphQL API
Read file contents from repositories
Create or update files in repositories, such as
README.md
Related MCP server: @cloud9-labs/mcp-github
Security Note
Never hard-code a GitHub token in source files. Set it as an environment variable named GITHUB_TOKEN.
If you pasted a real token into chat or committed it anywhere, revoke it in GitHub and create a new token.
Setup
npm installCreate a .env file in this project folder:
GITHUB_TOKEN=github_pat_your_token_hereThe token needs permissions for the operations you want to use. For fine-grained personal access tokens, grant repository administration, contents, and metadata access for the target repositories.
Classic PAT notes:
Deleting repositories requires the
delete_reposcope.Updating repository files requires repo contents write access.
Pinning repositories uses GitHub GraphQL
addPinnedItem; use a token that can access the target repository and update the authenticated user's pinned items.
Run
npm startInstall From npm
After this package is published, users can run it without cloning the repo:
npx github-repo-manager-mcpOr install it globally:
npm install -g github-repo-manager-mcp
github-repo-manager-mcpSet GITHUB_TOKEN in your MCP client environment. If you clone this repository locally, the server can also load GITHUB_TOKEN from a .env file in the project folder.
MCP Client Config
Example client config using npx:
{
"mcpServers": {
"github-repo-manager": {
"command": "npx",
"args": ["-y", "github-repo-manager-mcp"],
"env": {
"GITHUB_TOKEN": "github_pat_your_token_here"
}
}
}
}Example local development config:
{
"mcpServers": {
"github-repo-manager": {
"command": "C:/PROGRA~1/nodejs/node.exe",
"args": ["C:/Users/msaad/OneDrive/Documents/github_organized/src/server.js"],
"env": {
"GITHUB_TOKEN": "github_pat_your_token_here"
}
}
}
}The server also loads GITHUB_TOKEN from the local .env file automatically, so the env block is optional if .env is present.
Publish to npm
Before publishing, make sure you are logged in:
npm loginThen publish:
npm publish --access publicThe package publishes only src, README.md, LICENSE, and run-mcp.cmd.
MCP Inspector on Windows
Use these settings in MCP Inspector:
Transport Type
STDIOCommand
C:\PROGRA~1\nodejs\node.exeArguments
C:/Users/msaad/OneDrive/Documents/github_organized/src/server.jsUse the short Node path to avoid the space in Program Files. Use forward slashes in the server path because MCP Inspector can strip backslashes from Windows paths in the Arguments field.
Available Tools
create_repository: Create a repository for the authenticated user or an organization. Supports description, homepage, privacy, auto-init,.gitignore, license, and topics.update_repository: Update description, homepage, visibility/privacy, feature flags, default branch, archived state, and topics.delete_repository: Delete a repository. Requiresconfirm=true.add_repository_topics: Add topics without removing existing topics.add_repository_labels: Create labels, or update existing labels if they already exist.list_repositories: List repositories visible to the authenticated user, an owner, or an organization with filters for visibility, archived state, topic, name, sort, and direction.rename_repository: Rename a repository.archive_repository: Archive a repository.pin_repository: Pin a repository to the authenticated user's GitHub profile via GraphQL.get_file_content: Read a file from a repository, defaulting toREADME.md.update_file_content: Create or update a file in a repository, defaulting toREADME.md; it auto-fetches the current SHA when updating an existing file.
Tool Inputs
Most tools accept an optional owner. If omitted, the server uses the authenticated GitHub user's login.
get_file_content inputs:
{
"owner": "optional-owner",
"repo": "repo-name",
"path": "README.md",
"branch": "optional-branch"
}update_file_content inputs:
{
"owner": "optional-owner",
"repo": "repo-name",
"path": "README.md",
"content": "# New content",
"message": "Update README via MCP",
"branch": "optional-branch"
}To update an existing file, sha is optional because the server attempts to fetch it automatically.
Available Tools
11 toolsadd_repository_labelsC
Create labels on a repository for organization.
Inputs: repo (required), labels (required), owner.
add_repository_topicsB
Add topics/tags to a repository without removing existing topics.
Inputs: repo (required), topics (required), owner.
archive_repositoryC
Archive a repository.
Inputs: repo (required), owner.
create_repositoryC
Create a new GitHub repository for the authenticated user or an organization.
Inputs: name (required), description, homepage, private, +5 more.
delete_repositoryA
Delete a GitHub repository. Requires confirm=true. NOTE: Your PAT must have the 'delete_repo' scope enabled.
Inputs: repo (required), owner, confirm.
get_file_contentA
Get the content of any file (e.g. README.md) from a GitHub repository using the authenticated token.
Inputs: repo (required), owner, path, branch.
list_repositoriesC
List repositories visible to the authenticated user with filters.
Inputs: owner, org, type, visibility, +7 more.
pin_repositoryB
Pin a repository to a GitHub profile using the GitHub GraphQL API. Requires Classic PAT with write:discussion scope.
Inputs: repo (required), owner.
rename_repositoryD
Rename a repository.
Inputs: repo (required), newName (required), owner.
update_file_contentB
Create or update any file (e.g. README.md) in a GitHub repository using the authenticated token. Provide sha to update an existing file, omit to create a new one.
Inputs: repo (required), content (required), owner, path, +3 more.
update_repositoryC
Update repository details such as description, homepage, topics, visibility, default branch, and archived state.
Inputs: repo (required), owner, description, homepage, +8 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools have distinct purposes, but update_repository overlaps with archive_repository and rename_repository. Descriptions help clarify boundaries.
All tools follow a consistent verb_noun pattern using snake_case (e.g., create_repository, delete_repository, update_file_content).
11 tools is well-scoped for a repository manager, covering core operations without being overwhelming.
Covers CRUD and common operations like labels and topics, but missing explicit get single repo details and collaboration management.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Create, deploy, and operate MCP servers directly from your GitHub repositories.
A MCP server built for developers enabling Git based project management with project and personal…
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that allows Claude and other MCP-compatible LLMs to interact with the GitHub API, supporting features like creating issues, getting repository information, listing issues, and searching repositories.4ISC
- AlicenseBqualityDmaintenanceMCP (Model Context Protocol) server for GitHub API integration. This server provides comprehensive tools for interacting with GitHub repositories, issues, pull requests, branches, and code search through a unified interface.157 npmMIT
- AlicenseNot gradedqualityNot gradedmaintenanceMCP server for the GitHub API, enabling file operations, repository management, search functionality, issues, pull requests, and more.475 npmMIT
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to list GitHub repositories for a user or organization and list directories within a repository via the GitHub REST API.2ISC