Skip to main content
Glama
OpenAPI Client Generator MCP

OpenAPI Client Generator MCP

openapi-client-generator MCP Server

A Model Context Protocol server to generate API clients by using TypeScript.

Features

Resources

  • Generates an axios based API client that can be used to interact with the API.

  • It uses OpenAPI / Swagger specs to generate the client.

Prompts

  • generate_client - Generate a API client for specified OpenAPI specs.

Related MCP server: Emcee

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "openapi-client-generator": {
      "command": "node",
      "args": [
        "< PATH TO >/openapi-client-generator/build/index.js"
      ]
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Contributing

Feel free to contribute to the project by opening issues or submitting pull requests. We welcome any improvements or new features that align with the project's goals.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Built with Cline

Available Tools

1 tool
generate_clientB

Generate TypeScript API client from OpenAPI specification

Inputs: input (required), output (required), httpClient (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion. The tool has a clear and singular purpose.

    Naming Consistency5/5

    The single tool uses a clear verb_noun pattern ('generate_client'), which is consistent and descriptive.

    Tool Count3/5

    A single tool feels thin for an OpenAPI client generator. While it may suffice for a minimal use case, most users would expect additional capabilities like validation or endpoint listing.

    Completeness2/5

    The tool only generates a client from a specification. Obvious gaps include validating the spec, listing endpoints, or configuring output options, which limits its usefulness.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.
      8
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A service that converts OpenAPI specifications into MCP tools, enabling AI assistants to interact with your API endpoints through natural language.
      MIT