Title: Add support for raw GraphQL queries · Issue #2437 · github/github-mcp-server · GitHub
Open Graph Title: Add support for raw GraphQL queries · Issue #2437 · github/github-mcp-server
X Title: Add support for raw GraphQL queries · Issue #2437 · github/github-mcp-server
Description: Feature Request: Raw GraphQL Query Tool Problem The current MCP server exposes a rich set of REST-based tools but has no way to execute arbitrary GraphQL queries against the GitHub API. This is a significant gap because several important...
Open Graph Description: Feature Request: Raw GraphQL Query Tool Problem The current MCP server exposes a rich set of REST-based tools but has no way to execute arbitrary GraphQL queries against the GitHub API. This is a s...
X Description: Feature Request: Raw GraphQL Query Tool Problem The current MCP server exposes a rich set of REST-based tools but has no way to execute arbitrary GraphQL queries against the GitHub API. This is a s...
Opengraph URL: https://github.com/github/github-mcp-server/issues/2437
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for raw GraphQL queries","articleBody":"## Feature Request: Raw GraphQL Query Tool\n\n### Problem\n\nThe current MCP server exposes a rich set of REST-based tools but has no way to execute arbitrary GraphQL queries against the GitHub API. This is a significant gap because several important GitHub operations are only available — or significantly richer — via GraphQL.\n\nA concrete example that motivated this request: resolving pull request review threads requires the `PRRT_xxx` node ID, which is only returned by GraphQL. With the current MCP server there is no way to resolve review threads programmatically, even though `pull_request_review_write` supports the `resolve_thread` method and accepts a `threadId`.\n\n### Proposed Solution\n\nAdd a `graphql` tool that executes a raw GraphQL query or mutation against `https://api.github.com/graphql`, e.g.:\n\n```json\n{\n \"name\": \"graphql\",\n \"description\": \"Execute a raw GraphQL query or mutation against the GitHub API.\",\n \"parameters\": {\n \"query\": \"string — the GraphQL query or mutation\",\n \"variables\": \"object (optional) — variables to pass to the query\"\n }\n}\n```\n\n### Use Cases\n\n- Fetching pull request review thread node IDs (`PRRT_xxx`) to resolve threads\n- Querying `suggestedActors` to discover the Copilot bot handle before assigning\n- Using `assignCopilotToIssue` mutation (currently only available via GraphQL)\n- Any operation that returns richer data via GraphQL than the equivalent REST endpoint\n\n### Notes\n\n- The existing `list_issues` tool already uses GraphQL under the hood, so the infrastructure is there\n- A raw query tool would unlock the full GitHub GraphQL API surface without requiring a new dedicated tool for every GraphQL-only feature\n\nThanks for the great work on the MCP server!\n","author":{"url":"https://github.com/monperrus","@type":"Person","name":"monperrus"},"datePublished":"2026-05-06T21:46:10Z","url":"https://github.com/github/github-mcp-server/issues/2437"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5070de32-1b30-6fb7-0f50-3edc63da27f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FE6:2297AD:2F4E01:3DF4E6:6B06164B |
| html-safe-nonce | 61ae038ba031cee863f000d45b134a20949797534a1cc01db97388474322bfe0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkU2OjIyOTdBRDoyRjRFMDE6M0RGNEU2OjZCMDYxNjRCIiwidmlzaXRvcl9pZCI6Ijg4MzYzMzY4MjAzMjI0NDA3NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cf884f0efc72502131296d5fac9a8a2e4adb6dfe88dde8a9c270db9cdf717d83 |
| hovercard-subject-tag | issue:4394649700 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/2437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d3cc5f63e6edba93d20a2e522bbd18d5b6566f4b769b6ed66ffb015da0df9b5/github/github-mcp-server/issues/2437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d3cc5f63e6edba93d20a2e522bbd18d5b6566f4b769b6ed66ffb015da0df9b5/github/github-mcp-server/issues/2437 |
| og:image:alt | Feature Request: Raw GraphQL Query Tool Problem The current MCP server exposes a rich set of REST-based tools but has no way to execute arbitrary GraphQL queries against the GitHub API. This is a s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | monperrus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width