Skip to content

Setup Local GitHub MCP Server and Integrate with Cursor #101

@csmangum

Description

@csmangum

We need to set up a local GitHub MCP server using Docker to enable Cursor IDE to create and manage GitHub issues and pull requests via AI-assisted workflows. This will streamline development by automating context-aware issue and PR creation directly from the IDE.


Checklist:

  • Install Docker if not already installed

  • Generate a GitHub Personal Access Token with the following scopes:

    • repo
    • issues
    • pull_requests
  • Run the GitHub MCP server using Docker:

    docker run -i --rm \
      -e GITHUB_PERSONAL_ACCESS_TOKEN=ghp_yourTokenHere \
      ghcr.io/github/github-mcp-server
  • (Optional) Limit toolsets using:

    -e GITHUB_TOOLSETS=repos,issues,pull_requests
  • Register the MCP server in Cursor:

    • Settings → MCP Servers → Add Server

    • Command: docker

    • Args:

      [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN=ghp_yourTokenHere",
        "ghcr.io/github/github-mcp-server"
      ]
  • Test Cursor integration by having it create an issue or PR via chat


Goal:
Have a fully functioning MCP integration running locally that allows Cursor to interact with GitHub repositories using natural language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions