github-mcp-lite
A minimal MCP server that enables creating GitHub repositories, committing files, and publishing releases using just a personal access token, without Docker or local Git.
README
<p align="center"> <b>English</b> | <a href="README.fa.md">فارسی</a> </p>
github-mcp-lite
A minimal MCP (Model Context Protocol) server for creating GitHub repositories, committing files, and publishing releases using a plain Personal Access Token (PAT).
No Docker, no local Git installation, and no GitHub Copilot subscription
required — unlike the hosted api.githubcopilot.com/mcp/
server, which gates access
behind a Copilot entitlement. This server talks directly to the regular
GitHub REST API (api.github.com) over plain fetch, so it's a single
dependency-light file you can read top to bottom in a few minutes.
Why this exists
Most MCP GitHub integrations either require a full local git toolchain, a
Docker container, or a Copilot-gated hosted endpoint. github-mcp-lite is
for cases where you just want an AI assistant to be able to:
- spin up a new repo,
- push a batch of files to it in one commit, and
- tag a release,
using nothing but a token you already have.
Tools
| Tool | Description | Destructive? |
|---|---|---|
get_authenticated_user |
Return the login/profile for the account owning the configured token. | No |
create_repository |
Create a repo owned by the authenticated user. Auto-initialized with a README so a default branch exists immediately. | No |
commit_files |
Create or update one or more text files in a single commit. | Yes (overwrites file contents) |
create_release |
Publish a tagged GitHub release. | No |
delete_repository |
Permanently delete a repository. Requires the delete_repo token scope. |
Yes, irreversible |
Each tool is annotated with readOnlyHint / destructiveHint /
openWorldHint metadata so MCP clients can surface appropriate confirmation
prompts.
get_authenticated_user
No input. Returns { login, html_url, name } for the token's owner.
create_repository
| Param | Type | Required | Notes |
|---|---|---|---|
name |
string | yes | Repository name |
description |
string | no | Repository description |
private |
boolean | no | Defaults to false (public) |
Returns { full_name, html_url, clone_url, default_branch }.
commit_files
| Param | Type | Required | Notes |
|---|---|---|---|
owner |
string | yes | Repository owner |
repo |
string | yes | Repository name |
branch |
string | no | Defaults to the repo's default branch |
message |
string | yes | Commit message |
files |
array of { path, content } |
yes | UTF-8 text content only; at least one file |
Internally this creates blobs, a tree, and a commit via the Git Data API,
then fast-forwards the branch ref — so it's a real single commit, not one
commit per file. Returns { commit_sha, html_url, files_changed }.
create_release
| Param | Type | Required | Notes |
|---|---|---|---|
owner |
string | yes | Repository owner |
repo |
string | yes | Repository name |
tag_name |
string | yes | e.g. v1.0.0 |
name |
string | no | Release title |
body |
string | no | Release notes (Markdown) |
target_commitish |
string | no | Branch or commit SHA to tag; defaults to the default branch |
draft |
boolean | no | Defaults to false |
prerelease |
boolean | no | Defaults to false |
Returns { html_url, id, tag_name }.
delete_repository
| Param | Type | Required | Notes |
|---|---|---|---|
owner |
string | yes | Repository owner |
repo |
string | yes | Repository name |
Permanently deletes the repository. Returns { deleted: true, full_name }.
Requires a classic PAT with the delete_repo scope — fine-grained tokens
generally cannot delete repositories.
Installation
Prerequisites
- Node.js 18+ (for native
fetchsupport) - A GitHub Personal Access Token with
the
reposcope (adddelete_repotoo if you want to usedelete_repository)
Note: Repository creation isn't reliably supported by fine-grained PATs, so a classic token is recommended.
Clone and install dependencies
git clone https://github.com/MatinMHF/github-mcp-lite.git
cd github-mcp-lite
npm install
Configure your token
The server reads the token from either GITHUB_PERSONAL_ACCESS_TOKEN or
GITHUB_TOKEN in its environment. Set one of these before it starts — the
process exits immediately with an error if neither is present.
Usage
Run directly
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_xxx node index.js
The server communicates over stdio, so it's meant to be launched by an MCP client (Claude Code, Claude Desktop, etc.), not run interactively on its own.
Register with Claude Code
claude mcp add github-lite -s user -e GITHUB_PERSONAL_ACCESS_TOKEN=<your_token> -- node /path/to/index.js
On Windows PowerShell, quote the separator as "--" — PowerShell silently
strips a bare -- before it reaches the script's arguments, which breaks
argument parsing:
claude mcp add github-lite -s user -e GITHUB_PERSONAL_ACCESS_TOKEN=<your_token> "--" node "C:/path/to/index.js"
Register with Claude Desktop (or any MCP-compatible client)
Add an entry to your client's MCP server config (e.g.
claude_desktop_config.json):
{
"mcpServers": {
"github-lite": {
"command": "node",
"args": ["C:/path/to/github-mcp-lite/index.js"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxx"
}
}
}
}
Example workflow
A typical session once the server is registered with your MCP client:
- "Who am I authenticated as?" → calls
get_authenticated_user - "Create a public repo called
my-project" → callscreate_repository(auto-initializes with a README so a default branch exists) - "Commit these files to it" → calls
commit_fileswith an array of{ path, content }entries, written in a single commit - "Publish a v1.0.0 release" → calls
create_release
Security notes
- The token is read once from the environment at startup and never logged.
commit_filesanddelete_repositoryare markeddestructiveHint: truein their tool annotations — well-behaved MCP clients should prompt for confirmation before invoking them.- Because this server has
openWorldHint: trueon every tool (it makes real network calls toapi.github.com), only run it with a token scoped to what you actually need.
Contributing
See CONTRIBUTING.md for guidelines. This project follows a Code of Conduct. To report a security issue, see SECURITY.md.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。