Skip to main content
Glama

Swagger MCP Server

by tuskermanshu

generate-api-client-optimized

Generate API client code from Swagger/OpenAPI documents with caching and large document support. Supports frameworks like Axios, Fetch, and React Query, offering options for type imports, grouping, and filtering by tags.

Instructions

Generate API client code from Swagger/OpenAPI document (optimized version with caching and large document support).

Input Schema

NameRequiredDescriptionDefault
cacheTTLMinutesNoCache TTL in minutes
clientTypeNoAPI client technology stack
excludeTagsNoExclude tags filter
filePrefixNoFile prefix
fileSuffixNoFile suffix
generateTypeImportsNoWhether to generate type imports
groupByNoGrouping method
headersNoRequest headers
includeTagsNoInclude tags filter
lazyLoadingNoWhether to use lazy loading
outputDirNoOutput directory
overwriteNoWhether to overwrite existing files
skipValidationNoWhether to skip validation
swaggerUrlYesSwagger/OpenAPI document URL
typesImportPathNoTypes import path
useCacheNoWhether to use cache

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "cacheTTLMinutes": { "description": "Cache TTL in minutes", "type": "number" }, "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" }, "lazyLoading": { "description": "Whether to use lazy loading", "type": "boolean" }, "outputDir": { "description": "Output directory", "type": "string" }, "overwrite": { "description": "Whether to overwrite existing files", "type": "boolean" }, "skipValidation": { "description": "Whether to skip validation", "type": "boolean" }, "swaggerUrl": { "description": "Swagger/OpenAPI document URL", "type": "string" }, "typesImportPath": { "description": "Types import path", "type": "string" }, "useCache": { "description": "Whether to use cache", "type": "boolean" } }, "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