Github Lite
FreeNot checkedA minimal MCP server that enables creating GitHub repositories, committing files, and publishing releases using just a personal access token, without Docker or
About
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
English | فارسی
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.
Table of Contents
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
Install Github Lite in Claude Desktop, Claude Code & Cursor
unyly install github-mcp-liteInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add github-mcp-lite -- npx -y github:MatinMHF/github-mcp-liteFAQ
Is Github Lite MCP free?
Yes, Github Lite MCP is free — one-click install via Unyly at no cost.
Does Github Lite need an API key?
No, Github Lite runs without API keys or environment variables.
Is Github Lite hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Github Lite in Claude Desktop, Claude Code or Cursor?
Open Github Lite on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Github Lite with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
