Back to Home
ThoreKoritzius icon

graphql-mcp-server

Verified Safe

by ThoreKoritzius

Overview

A Python MCP server for LLMs that indexes a GraphQL schema, stores embeddings for type-field signatures, and enables fast semantic lookup and query execution against a GraphQL endpoint.

Installation

Run Command
python3 src/server.py

Environment Variables

  • GRAPHQL_EMBED_API_KEY
  • GRAPHQL_ENDPOINT_URL

Security Notes

The server makes network requests to user-configured embedding endpoints (via `GRAPHQL_EMBEDDINGS_URL`) and GraphQL API endpoints (via `GRAPHQL_ENDPOINT_URL`). While essential for its function, configuring with untrusted URLs could expose internal networks to Server-Side Request Forgery (SSRF) vulnerabilities if the server is publicly exposed. No 'eval' or obvious malicious code patterns were found. API keys and sensitive configuration are loaded from environment variables, promoting secure practice. `json.loads` is used for parsing environment variables like `GRAPHQL_EMBED_HEADERS` and `GRAPHQL_ENDPOINT_HEADERS`, which are configuration and not arbitrary runtime user input.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens250
Stars0
Forks0
Last Update2026-01-19

Tags

GraphQLLLM ToolsEmbeddingsSemantic SearchPython