Query and manage repositories on GitHub or GitLab via Claude. Authenticate with a personal access token and read repository data, issues, pull requests, and commits—or enable write operations for automation.
io.github.Ray0907/git-mcp-server
Local install
STDIO
1 required env var
How models use it and what it is built for.
Query and manage repositories on GitHub or GitLab via Claude. Authenticate with a personal access token and read repository data, issues, pull requests, and commits—or enable write operations for automation.
Local install — runs as a subprocess.
Configuration this server reads at startup.
Personal Access Token for GitHub or GitLab
Provider type: gitlab or github
API URL for self-hosted instances
Disable write operations (true/false)
Where to find authoritative docs and source for Ray0907 Git.
Paste any of these into Agent Studio after connecting Ray0907 Git.
Common questions about connecting and running Ray0907 Git.
Does this MCP server work with both GitHub and GitLab?
Yes. Set GIT_PROVIDER to either github or gitlab, and provide a valid personal access token via GIT_TOKEN. For self-hosted GitLab, also set GIT_API_URL to your instance URL.
Can I use this server to create or modify repositories and pull requests?
By default, write operations are enabled. Set GIT_READ_ONLY to true if you want to restrict the server to read-only access (querying repos, issues, and commits only).
What authentication is required?
You must provide a personal access token via the GIT_TOKEN environment variable. For GitHub, generate a token with repo and read:org scopes; for GitLab, create a personal access token with api scope.
Can I use this with a self-hosted GitLab instance?
Yes. Set GIT_PROVIDER to gitlab and GIT_API_URL to your self-hosted instance URL (e.g., https://gitlab.company.com/api/v4). Provide a valid personal access token for that instance.
How do I install and run this MCP server?
Install via npx @raytien/git-mcp-server@0.2.3, configure the required environment variables (GIT_PROVIDER and GIT_TOKEN), and connect it to your Claude client using stdio transport.
MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 30+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.
Open Agent Studio