This MCP server provides a modular interface for interacting with GitHub and GitLab repositories, allowing users to perform various Git operations.
From the registry: MCP server for GitLab and GitHub
Please install the `git-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Personal access token** — Create a GitHub or GitLab personal access token
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","@raytien/git-mcp-server"]
- required environment variables:
- `GIT_TOKEN`: Personal access token for the chosen provider (example: `<your-token>`)
- optional environment variables:
- `GIT_PROVIDER`: Provider type: github or gitlab (defaults to gitlab) (example: `github`)
- `GIT_API_URL`: Override API URL for self-hosted / Enterprise instances (example: `<your-git-host>/api/v4`)
- `GIT_AUTH_TYPE`: Auth type: bearer or private-token (example: `bearer`)
- `GIT_READ_ONLY`: Disable write operations (example: `false`)
- `LOG_LEVEL`: Log level (example: `info`)
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.GIT_TOKENrequiredPersonal Access TokenConnect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
The GitKraken MCP Server for managing repos, PRs, issues across GitHub, GitLab, Bitbucket and more.
Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.