What Cursor can do with GitHub
Ask your agent in plain language. Each of these maps to a real tool on the server.
- Ask Cursor to use the list pull requests tool in GitHub
- Ask Cursor to use the search git hub tool in GitHub
- Ask Cursor to use the merge pull request tool in GitHub
- Ask Cursor to use the get repository tool in GitHub
- Ask Cursor to use the manage labels tool in GitHub
Add the GitHub MCP server to Cursor
Run these once. Afterwards, everyone you give access to signs in the same way.
1. Enable GitHub in Metorial
In your Metorial portal, enable the GitHub MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
2. Add Metorial to your MCP config
Use ~/.cursor/mcp.json for every project, or .cursor/mcp.json for one.
{"mcpServers": {"metorial": {"url": "<your-magic-mcp-url>"}}}3. Sign in
Open Customize in the sidebar, find Metorial and sign in to load GitHub tools.
Give your team GitHub in Cursor
Once GitHub is enabled in Metorial, teammates sign in with SSO and get the same connection in Cursor, with only the tools their role allows.
One link covers every app you approve. See how the MCP gateway handles access, roles and audit logs for the whole company.
GitHub tools available in Cursor
Full descriptions and inputs are on the GitHub MCP server page.
- Manage Issue: Create or update a GitHub issue, including issue type, lifecycle state, duplicate closure, and organization-defined issue fields.
- Create Release: Create a new release for a GitHub repository with a tag, name, release notes, and draft/pre-release options.
- List Commits: List commits on a repository branch with filtering by SHA, path, author, or date range.
- List Repositories: List repositories for the authenticated user or a specific organization.
- Review Pull Request: Create, submit, or delete pull request reviews; resolve or unresolve review threads; add line or file comments to a pending review; and reply or react to review comments.
- List Branches: List branches in a GitHub repository, optionally filtered to protected or unprotected branches.
- Manage Gist: Create, read, update, or delete GitHub Gists (code snippets).
- Manage File Content: Read, create, update, or delete a file in a GitHub repository.
- Comment on Issue: Add a comment and/or reaction to a GitHub issue or pull request.
- Get User: Retrieve a GitHub user's profile.
- List Pull Requests: List pull requests in a GitHub repository with filtering by state, head/base branch, and sorting options.
- Search GitHub: Search across GitHub for repositories, code, issues/pull requests, users, or organizations using GitHub's search syntax.
- Merge Pull Request: Merge a pull request using the specified merge method (merge commit, squash, or rebase).
- Get Repository: Retrieve detailed information about a GitHub repository including its settings, statistics, and metadata.
- Manage Labels: List, create, update, rename, or delete labels in a GitHub repository.
- And 59 more on the GitHub MCP server page.
Using GitHub tools in Cursor
What to expect once GitHub is connected.
- Cursor picks MCP tools automatically when they are relevant, including in Plan Mode. Name a GitHub tool to steer it.
- Cursor asks for approval before it uses an MCP tool by default. Click the arrow next to the tool name to check the arguments first.
- Switch the Metorial server off from Customize in the sidebar without removing it.
- Cursor shows each GitHub tool response in chat, with expandable views of the arguments and the result.
Troubleshooting Cursor
- Metorial connects but tools are missing or failing
- Open the Output panel (Cmd+Shift+U), choose MCP Logs, and look for authentication or connection errors.
- Your company blocks the server
- Enterprise admins approve remote servers in Team Settings, then MCP Configuration. Ask them to add a URL entry for your Metorial URL.
- Cursor asks before every tool call
- That is the default. Allowlist the Metorial tools you trust in your Run Mode settings to run them without a prompt.
Based on the Cursor MCP documentation.
Frequently asked questions
Common questions about connecting GitHub to AI agents with Metorial.
Does Cursor support the GitHub MCP server?
Yes. Cursor connects to the GitHub MCP server through its MCP config file, pointed at your Metorial URL. You need Cursor with MCP support.Do I need an API key to connect GitHub to Cursor?
No. You sign in to GitHub once through Metorial, and Cursor uses that connection. No API keys go into Cursor's settings.Which GitHub tools can Cursor use?
All 74 GitHub tools your team allows, such as Manage Issue, Create Release, List Commits. Admins can narrow that list per team.Can I control which teammates use GitHub in Cursor?
Yes. Role-based access control decides who can use GitHub and which of its tools appear in Cursor, and every call is logged with the person's identity.What if Cursor doesn't show GitHub tools?
Open the Output panel (Cmd+Shift+U), choose MCP Logs, and look for authentication or connection errors.
Linear