# openapi-client-generator-mcp

> MCP Server

This repository provides an MCP server that generates TypeScript API clients from OpenAPI/Swagger specifications, enabling developers to easily interact with APIs using an axios-based client. This repository provides an MCP

## Overview

- **Category:** Developer Tools
- **Language:** JavaScript
- **Stars:** 1
- **Forks:** 2
- **Owner:** orhanveli
- **GitHub:** https://github.com/orhanveli/openapi-client-generator-mcp
- **Created:** 2025-01-10T10:48:57+00:00
- **Updated:** 2025-03-12T10:40:36+00:00
- **Source:** https://model-context-protocol.com/servers/typescript-api-client-generator-mcp-server

## Setup

## Setup

1.  Install dependencies:
```bash
npm install
```

2.  Build the server:
```bash
npm run build
```

3.  For development with auto-rebuild:
```bash
npm run watch
```

4.  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`

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

5.  Debugging: Use the MCP Inspector:
```bash
npm run inspector
```

## Tools

## Available Tools

1.  Generates an axios based API client (can be used to interact with the API).
2.  Uses OpenAPI / Swagger specs (to generate the client).
3.  `generate_client` prompt (Generate a API client for specified OpenAPI specs).
4.  MCP Inspector (debugging tool).

