generate_curl
Generate a ready-to-use cURL command for an API endpoint. Includes sample request body, auth headers, and path/query parameters. Copy-paste to terminal or import into Postman.
Load an OpenAPI spec once, then search its endpoints, read fully dereferenced request and response schemas, validate a payload against them, generate TypeScript types and produce a runnable cURL command.
LABSCO SUMMARY
That is the difference between a spec a model can answer questions from and one it has to chase through by hand. What it generates is built to be used rather than read: the cURL command arrives with a sample body, auth headers and parameters in place, and the TypeScript generation works from either a named component schema or an endpoint's request and response pair. One ordering rule governs the whole surface — load_spec first, and every other tool operates on whatever it loaded.
An OpenAPI specification client: one spec loaded from a URL or a file, then browsed, queried, validated against, and turned into code.
An OpenAPI specification reachable by URL or by local path, loaded through load_spec before any other tool will answer. Nothing else — no account, no key.
One command — npx --yes @blackkspydo/openapi-mcp
USE CASES
The spec is loaded once and then queried: endpoints listed by method, tag or deprecation, searched across path, summary, description and operationId, and one of them opened with its parameters, responses and security.
The request schema comes back fully dereferenced, a sample can be generated from it with or without optional fields, and the payload you assembled is checked against the schema before it is ever sent.
Response schemas are addressed per status code, so the success shape and the error shape are separate answers rather than one union you have to untangle.
The server list supplies the base URL and its variables, the auth schemes say what the endpoint requires, and the generated cURL arrives with a sample body, headers and parameters already in place.
Types come either from a named component schema or from an endpoint's request and response pair, generated off the same dereferenced schemas the validation uses, so the types and the checks agree.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
generate_curlGenerate a ready-to-use cURL command for an API endpoint. Includes sample request body, auth headers, and path/query parameters. Copy-paste to terminal or import into Postman.
generate_sampleGenerate a sample request payload for an endpoint based on its schema.
generate_typescript_typesGenerate TypeScript interfaces/types from OpenAPI schemas. Use schemaName to generate from a component schema (e.g., 'Pet'), or use path+method to generate request/response types for an endpoint.
get_auth_schemesGet authentication schemes defined in the OpenAPI spec and their requirements per endpoint.
get_endpoint_detailsGet detailed information about a specific endpoint including parameters, request body, responses, and security.
get_request_schemaGet the fully dereferenced request body schema for an endpoint.
get_response_schemaGet the response schema for an endpoint by status code.
get_serversGet available API servers and their variables from the OpenAPI spec.
list_endpointsList all API endpoints from the loaded OpenAPI spec with optional filtering.
load_specLoad an OpenAPI specification from a URL or local file. This must be called before using other tools.
search_endpointsSearch for endpoints by keyword across path, summary, description, and operationId.
validate_payloadValidate a JSON payload against the request schema for an endpoint.
BEFORE YOU INSTALL
12 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 12 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"openapi-mcp": {
"command": "npx",
"args": [
"--yes",
"@blackkspydo/openapi-mcp"
]
}
}
}npx --yes @blackkspydo/openapi-mcp