Serveur MCP

graphql-rest-bridge

io.github.lazymac2x/graphql-rest-bridge
Outils développeur Public et accessible MCP 2026-07-28

Ce que fait ce MCP

Parses GraphQL queries, analyzes schemas, converts GraphQL operations to REST calls, and filters REST response fields.

field_optimizer
Filter a JSON object or array to include only specified fields. Useful for reducing REST response payloads to match GraphQL selection sets.
Schéma d’entrée
{'type': 'object', 'required': ['data', 'fields'], 'properties': {'data': {'description': 'JSON object or array to filter'}, 'fields': {'type': 'array', 'items': {'type': 'string'}, 'example': ['id', 'name', 'email'], 'description': 'Field names to keep'}}}
graphql_parser
Parse a GraphQL query string. Returns operationType (query/mutation/subscription), top-level field names, fragment definitions, variable declarations, and nesting depth.
Schéma d’entrée
{'type': 'object', 'required': ['query'], 'properties': {'query': {'type': 'string', 'example': 'query GetUsers { users { id name email } }', 'description': 'GraphQL query string'}}}
rest_translator
Convert a GraphQL query or mutation to a REST API call. Returns method (GET/POST), endpoint URL, headers, optional body template for mutations with variables.
Schéma d’entrée
{'type': 'object', 'required': ['query'], 'properties': {'query': {'type': 'string', 'description': 'GraphQL query or mutation string'}, 'baseUrl': {'type': 'string', 'default': 'https://api.example.com', 'description': 'Target REST API base URL'}}}
schema_analyzer
Analyze a GraphQL introspection result to list queryable operations, mutations, subscriptions, and user-defined types. Filters out built-in GraphQL scalar and meta-types.
Schéma d’entrée
{'type': 'object', 'required': ['schema'], 'properties': {'schema': {'type': 'object', 'description': 'GraphQL introspection result object containing __schema'}}}
Ajouté
schema_analyzer
17 September 2026 12:43
Ajouté
field_optimizer
17 September 2026 12:43
Ajouté
rest_translator
17 September 2026 12:43
Ajouté
graphql_parser
17 September 2026 12:43