MCP ServerSTDIOOfficialv0.2.3

Ray0907 Git MCP Server

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

Hosted URL

Local install

Transport

STDIO

Auth

1 required env var

What the Ray0907 Git MCP server does

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.

Connect to Ray0907 Git

Local install — runs as a subprocess.

npx @raytien/git-mcp-server@0.2.3

Environment variables

Configuration this server reads at startup.

  • GIT_TOKENRequiredSecret

    Personal Access Token for GitHub or GitLab

  • GIT_PROVIDER

    Provider type: gitlab or github

  • GIT_API_URL

    API URL for self-hosted instances

  • GIT_READ_ONLY

    Disable write operations (true/false)

Resources

Where to find authoritative docs and source for Ray0907 Git.

Example prompts for Ray0907 Git

Paste any of these into Agent Studio after connecting Ray0907 Git.

  • List all open pull requests in my GitHub organization
  • Fetch the last 10 commits from the main branch of repo-name
  • Show me issues labeled bug that were created this week
  • What environment variables do I need to configure for a self-hosted GitLab instance?

Ray0907 Git MCP server — FAQ

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.

Skip the local setup — run MCP in your browser

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

Related servers

More on MCP Playground