cyberneticlibrary

Wrap OpenAPI or GraphQL as MCP

mcp-servermcp_serversetup L30
npm:@xyd-js/mcp-server
What it does

Expose OpenAPI or GraphQL schemas as MCP tools over HTTP

Best for

Wrapping existing OpenAPI/GraphQL APIs as MCP servers without reimplementing tools.

Inputs
  • · uniform source (OpenAPI JSON or GraphQL schema)
  • · bearer token for authentication
Outputs
  • · MCP tool definitions
  • · resource descriptions
Requires
  • · @modelcontextprotocol/sdk
  • · express
Preconditions
  • · bun install
  • · Build the server (bun run build)
  • · PORT env var (default 3000)
Failure modes
  • · Bearer token stored per session only—not persisted
Trust signals
  • · MCP Inspector integration
  • · Demo API included
  • · Multiple language support (bun)