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
- Create Operation File - Add a new
.graphqlfile ingraphql-mcp-server/data/operations/ - Define Query/Mutation - Write your GraphQL operation
- Automatic Tool Creation - Server creates the MCP tool automatically
- Test - Restart Claude Desktop and test your new tool