MCPサーバー

graphql-rest-bridge

io.github.lazymac2x/graphql-rest-bridge
開発者向けツール 公開・接続可能 MCP 2026-07-28

この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.
入力スキーマ
{'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.
入力スキーマ
{'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.
入力スキーマ
{'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.
入力スキーマ
{'type': 'object', 'required': ['schema'], 'properties': {'schema': {'type': 'object', 'description': 'GraphQL introspection result object containing __schema'}}}
追加
schema_analyzer
2026年9月17日12:43
追加
field_optimizer
2026年9月17日12:43
追加
rest_translator
2026年9月17日12:43
追加
graphql_parser
2026年9月17日12:43