Skip to content

Setup

Running the Server

Using Docker Compose

cd graphql-mcp-server
docker-compose up

Environment Configuration

Create a .env file in graphql-mcp-server:

# Apollo GraphQL Configuration
APOLLO_KEY="your-apollo-key-here"
APOLLO_GRAPH_REF="your-apollo-graph-ref-here"

# GraphQL Endpoint
GRAPHQL_ENDPOINT=https://api-dev.credplatform.com/graphql

Development Credentials

For development, use these Apollo credentials:

APOLLO_KEY="service:cred-supergraph-api:1zBIZ8UjuGCA_yF8hDQLDA"
APOLLO_GRAPH_REF="cred-supergraph-api@dev"

Adding New Operations

  1. Create Operation File - Add a new .graphql file in graphql-mcp-server/data/operations/
  2. Define Query/Mutation - Write your GraphQL operation
  3. Automatic Tool Creation - Server creates the MCP tool automatically
  4. Test - Restart Claude Desktop and test your new tool