Integrations
Uses Axios to send requests to GraphQL endpoints, allowing for authenticated API interactions with configurable authorization tokens.
Acts as a bridge to any GraphQL API, providing tools to introspect schemas and execute arbitrary queries or mutations against the target GraphQL endpoint.
Built on Node.js to implement the Model Context Protocol server functionality, enabling GraphQL API interactions through standard I/O.
mcp4gql - GraphQL MCP 서버
이 프로젝트는 모델 컨텍스트 프로토콜(MCP)을 구현하는 Node.js/TypeScript 서버입니다. MCP 클라이언트(예: Cursor)가 대상 GraphQL API와 상호 작용할 수 있도록 하는 브릿지 역할을 합니다.
특징
- MCP 서버:
@modelcontextprotocol/sdk
의 MCPServer
클래스를 구현합니다. - 표준 입출력 (Stdio Transport): 표준 입출력을 통해 클라이언트와 통신합니다.
- GraphQL 클라이언트:
axios
사용하여 구성된 GraphQL 엔드포인트에 요청을 보냅니다. - 일반 GraphQL 도구: 다음 도구를 MCP 클라이언트에 제공합니다.
introspectGraphQLSchema
: 인트로스펙션을 사용하여 대상 GraphQL API 스키마를 가져옵니다.executeGraphQLOperation
:query
, 선택적variables
, 선택적operationName
입력으로 받아 대상 API에 대해 임의의 GraphQL 쿼리나 뮤테이션을 실행합니다.
구성
서버에는 다음과 같은 환경 변수가 필요합니다.
GRAPHQL_ENDPOINT
: 대상 GraphQL API의 URL입니다.AUTH_TOKEN
: GraphQL API 인증을 위한 선택적Authorization: Bearer <token>
헤더에 대한 전달자 토큰입니다.
클라이언트 구성
Cursor나 Claude Desktop과 같은 클라이언트가 이 서버에서 제공하는 도구를 사용할 수 있게 하려면 npx
명령을 실행하도록 구성해야 합니다.
커서
- 커서 MCP 설정으로 이동하세요(커서 > 설정 > 커서 설정 > MCP)
- 새로운 글로벌 MCP 서버 추가로 이동
- 커서 MCP 구성에 다음을 추가하세요.지엑스피1
클로드 데스크탑
- Claude Desktop 설정을 엽니다(Claude > 설정).
- 개발자 > 구성 편집으로 이동합니다.
- 구성에 추가:Copy
구성이 완료되면 MCP 클라이언트는 해당 서버에서 제공하는 introspectGraphQLSchema
및 executeGraphQLOperation
도구를 나열하고 호출할 수 있어야 합니다(해당하는 경우). 서버가 API에 연결할 수 있도록 구성에서 필수 환경 변수( GRAPHQL_ENDPOINT
및 선택적으로 AUTH_TOKEN
)를 설정해야 합니다.
You must be authenticated.
GraphQL MCP 서버는 스키마 내성 검사 및 작업 실행을 위한 표준 도구를 통해 MCP 클라이언트(예: Cursor 또는 Claude Desktop)가 대상 GraphQL API와 상호 작용할 수 있도록 하는 브리지 역할을 합니다.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityMCP for working with GraphQL servers.Last updated -2536103TypeScriptMIT License
- -securityFlicense-qualityAn MCP server that enables graph database interactions with Neo4j, allowing users to access and manipulate graph data through natural language commands.Last updated -Python
- -securityFlicense-qualityA MCP server that exposes GraphQL schema information to LLMs like Claude. This server allows an LLM to explore and understand large GraphQL schemas through a set of specialized tools, without needing to load the whole schema into the contextLast updated -141JavaScript
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -5361MIT License