MCP server for GitLab and GitHub
Connect Runs on your machine
claude mcp add git-mcp-server -e GIT_PROVIDER=<GIT_PROVIDER> -e GIT_TOKEN=<GIT_TOKEN> -e GIT_API_URL=<GIT_API_URL> -e GIT_READ_ONLY=<GIT_READ_ONLY> -- npx -y @raytien/[email protected]
{
"mcpServers": {
"git-mcp-server": {
"command": "npx",
"args": [
"-y",
"@raytien/[email protected]"
],
"env": {
"GIT_PROVIDER": "<GIT_PROVIDER>",
"GIT_TOKEN": "<GIT_TOKEN>",
"GIT_API_URL": "<GIT_API_URL>",
"GIT_READ_ONLY": "<GIT_READ_ONLY>"
}
}
}
}
{
"mcpServers": {
"git-mcp-server": {
"command": "npx",
"args": [
"-y",
"@raytien/[email protected]"
],
"env": {
"GIT_PROVIDER": "<GIT_PROVIDER>",
"GIT_TOKEN": "<GIT_TOKEN>",
"GIT_API_URL": "<GIT_API_URL>",
"GIT_READ_ONLY": "<GIT_READ_ONLY>"
}
}
}
}
{
"servers": {
"git-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@raytien/[email protected]"
],
"env": {
"GIT_PROVIDER": "<GIT_PROVIDER>",
"GIT_TOKEN": "<GIT_TOKEN>",
"GIT_API_URL": "<GIT_API_URL>",
"GIT_READ_ONLY": "<GIT_READ_ONLY>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
GIT_PROVIDEROptional | Provider type: gitlab or github |
GIT_TOKENRequired, secret | Personal Access Token for GitHub or GitLab |
GIT_API_URLOptional | API URL for self-hosted instances |
GIT_READ_ONLYOptional | Disable write operations (true/false) |
Details
| Package | @raytien/[email protected] (NPM, stdio) |
| First published | 8 Dec 2025 |
| Last updated | 8 Dec 2025 |
| Registry name | io.github.Ray0907/git-mcp-server |
More developer tools servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
