Community생산성 & 협업github.com

apollographql/apollo-mcp-server

Apollo MCP 서버를 사용하여 AI 에이전트를 GraphQL API에 연결하는 방법을 안내합니다. 이 스킬은 (1) Apollo MCP 서버 설정 또는 구성, (2) GraphQL 연산에서 MCP 도구 정의, (3) 인트로스펙션 도구(introspect, search, validate, execute) 사용, (4) MCP 서버 연결 또는 도구 실행 문제 해결 시 사용합니다.

apollo-mcp-server란 무엇인가요?

이 스킬은 Apollo MCP 서버를 사용하여 AI 에이전트(예: Claude Code, Cursor, Codex)를 GraphQL API와 통합하는 방법을 제공합니다. MCP(Model Context Protocol)를 기반으로 하여, GraphQL 스키마를 자동으로 탐색하고(introspect), 검색(search), 유효성 검사(validate), 그리고 GraphQL 연산을 실행(execute)할 수 있는 도구들을 AI 에이전트에 제공합니다. 이를 통해 개발자는 AI 에이전트가 GraphQL API에 직접 접근하여 데이터를 조회하거나 변이(mutation)를 수행할 수 있도록 지원하며, 별도의 커스텀 통합 코드 작성 없이도 생산성을 크게 향상시킬 수 있습니다. 또한 Apollo MCP 서버의 설정 방법, 환경 변수 구성, 그리고 MCP 클라이언트(Claude Desktop, VS Code 등)와의 연결 문제 해결 방법을 포함한 포괄적인 가이드를 제공합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/apollographql/skills/tree/main/skills/apollo-mcp-server

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

apollo-mcp-server은(는) 무엇을 하나요?

Apollo MCP 서버를 사용하여 AI 에이전트를 GraphQL API에 연결하는 방법을 안내합니다. 이 스킬은 다음 상황에서 사용합니다: (1) Apollo MCP 서버 설정 또는 구성, (2) GraphQL 연산에서 MCP 도구 정의, (3) 인트로스펙션 도구(introspect, search, validate, execute) 사용, (4) MCP 서버 연결 또는 도구 실행 문제 해결.

개요

Apollo MCP 서버는 MCP(Model Context Protocol)를 구현하여 AI 에이전트가 GraphQL API와 상호 작용할 수 있도록 합니다. 이 서버는 GraphQL 스키마를 자동으로 분석하여 인트로스펙션, 스키마 검색, 쿼리 유효성 검사, 연산 실행 도구를 제공합니다.

설치

npx @apollo/mcp-server

설정

환경 변수를 사용하여 Apollo MCP 서버를 구성합니다:

변수명설명필수
APOLLO_API_KEYApollo GraphQL API 키아니오
GRAPHQL_ENDPOINTGraphQL API 엔드포인트 URL예
MCP_PORTMCP 서버 포트 (기본값: 8080)아니오

도구

Apollo MCP 서버는 다음 MCP 도구를 제공합니다:

introspect

GraphQL 스키마를 인트로스펙션하여 타입, 필드, 스키마 구조를 반환합니다.

search

스키마에서 타입 또는 필드를 검색합니다. 인수:

  • query: 검색어 (필수)

validate

제공된 GraphQL 쿼리 문자열의 유효성을 검사합니다. 인수:

  • query: 검사할 GraphQL 쿼리 문자열 (필수)

execute

GraphQL 연산(쿼리 또는 뮤테이션)을 실행합니다. 인수:

  • query: 실행할 GraphQL 연산 문자열 (필수)
  • variables: 연산 변수 (선택 사항, JSON 문자열)

사용 예시

인트로스펙션

{
  "name": "introspect"
}

스키마 검색

{
  "name": "search",
  "arguments": {
    "query": "User"
  }
}

쿼리 유효성 검사

{
  "name": "validate",
  "arguments": {
    "query": "query { users { id name } }"
  }
}

쿼리 실행

{
  "name": "execute",
  "arguments": {
    "query": "query { users { id name email } }"
  }
}

문제 해결

일반적인 문제:

  1. 연결 오류: GRAPHQL_ENDPOINT가 올바르고 접근 가능한지 확인합니다.
  2. 인증 오류: 일부 GraphQL API는 APOLLO_API_KEY가 필요합니다.
  3. 도구 실행 실패: 쿼리 문법을 확인하고 스키마 타입이 올바른지 검증합니다.

참고 자료

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

apollographql/apollo-client

Guide for building React applications with Apollo Client 4.x. Use this skill when: (1) setting up Apollo Client in a React project, (2) writing GraphQL queries or mutations with hooks, (3) configuring caching or cache policies, (4) managing local state with reactive variables, (5) troubleshooting Apollo Client errors or performance issues.

apollographql/apollo-connectors

Guide for integrating REST APIs into GraphQL supergraphs using Apollo Connectors with @source and @connect directives. Use this skill when the user: (1) mentions "connectors", "Apollo Connectors", or "REST Connector", (2) wants to integrate a REST API into GraphQL, (3) references @source or @connect directives, (4) works with files containing "# Note to AI Friends: This is an Apollo Connectors schema".

apollographql/apollo-federation

Guide for authoring Apollo Federation subgraph schemas. Use this skill when: (1) creating new subgraph schemas for a federated supergraph, (2) defining or modifying entities with @key, (3) sharing types/fields across subgraphs with @shareable, (4) working with federation directives (@external, @requires, @provides, @override, @inaccessible), (5) troubleshooting composition errors, (6) any task involving federation schema design patterns.

apollographql/apollo-router

Version-aware guide for configuring and running Apollo Router for federated GraphQL supergraphs. Generates correct YAML for both Router v1.x and v2.x. Use this skill when: (1) setting up Apollo Router to run a supergraph, (2) configuring routing, headers, or CORS, (3) implementing custom plugins (Rhai scripts or coprocessors), (4) configuring telemetry (tracing, metrics, logging), (5) troubleshooting Router performance or connectivity issues.

apollographql/apollo-server

Guide for building GraphQL servers with Apollo Server 5.x. Use this skill when: (1) setting up a new Apollo Server project, (2) writing resolvers or defining GraphQL schemas, (3) implementing authentication or authorization, (4) creating plugins or custom data sources, (5) troubleshooting Apollo Server errors or performance issues.

apollographql/graphql-operations

Guide for writing GraphQL operations (queries, mutations, fragments) following best practices. Use this skill when: (1) writing GraphQL queries or mutations, (2) organizing operations with fragments, (3) optimizing data fetching patterns, (4) setting up type generation or linting, (5) reviewing operations for efficiency.

apollographql/graphql-schema

Guide for designing GraphQL schemas following industry best practices. Use this skill when: (1) designing a new GraphQL schema or API, (2) reviewing existing schema for improvements, (3) deciding on type structures or nullability, (4) implementing pagination or error patterns, (5) ensuring security in schema design.

apollographql/rover

Guide for using Apollo Rover CLI to manage GraphQL schemas and federation. Use this skill when: (1) publishing or fetching subgraph/graph schemas, (2) composing supergraph schemas locally or via GraphOS, (3) running local supergraph development with rover dev, (4) validating schemas with check and lint commands, (5) configuring Rover authentication and environment, (6) exploring or searching a graph's schema for agent-driven discovery (rover schema describe / rover schema search).

apollographql/rust-best-practices

Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.

관련 스킬