Skip to main content
Glama

Swagger MCP Server

by tuskermanshu

generate-api-client

Create API client code from Swagger/OpenAPI documents using Axios, Fetch, or React Query. Specify output directory, file prefixes, grouping, and optional type imports for streamlined development.

Instructions

Generate API client code from Swagger/OpenAPI document.

Input Schema

NameRequiredDescriptionDefault
clientTypeNoAPI client technology stack
excludeTagsNoExclude tags filter
filePrefixNoFile prefix
fileSuffixNoFile suffix
generateTypeImportsNoWhether to generate type imports
groupByNoGrouping method
headersNoRequest headers
includeTagsNoInclude tags filter
outputDirNoOutput directory
overwriteNoWhether to overwrite existing files
swaggerUrlYesSwagger/OpenAPI document URL
typesImportPathNoTypes import path

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "clientType": { "description": "API client technology stack", "enum": [ "axios", "fetch", "react-query" ], "type": "string" }, "excludeTags": { "description": "Exclude tags filter", "items": { "type": "string" }, "type": "array" }, "filePrefix": { "description": "File prefix", "type": "string" }, "fileSuffix": { "description": "File suffix", "type": "string" }, "generateTypeImports": { "description": "Whether to generate type imports", "type": "boolean" }, "groupBy": { "description": "Grouping method", "enum": [ "tag", "path", "none" ], "type": "string" }, "headers": { "additionalProperties": { "type": "string" }, "description": "Request headers", "type": "object" }, "includeTags": { "description": "Include tags filter", "items": { "type": "string" }, "type": "array" }, "outputDir": { "description": "Output directory", "type": "string" }, "overwrite": { "description": "Whether to overwrite existing files", "type": "boolean" }, "swaggerUrl": { "description": "Swagger/OpenAPI document URL", "type": "string" }, "typesImportPath": { "description": "Types import path", "type": "string" } }, "required": [ "swaggerUrl" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tuskermanshu/swagger-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server