MCP server that converts OpenAPI specs into tools which can query API endpoints
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Built with FastMCP for TypeScript.
cars_addCar to call POST /cars from cars.json spec to create a new car, or github_get_user_repos to call GET /user/repos from github.yaml spec to list repos.specrun_batch tool can execute any tool with multiple inputs and returns a consolidated JSON resource.env file with {API_NAME}_API_KEY pattern{API_NAME}_SERVER_URL and {API_NAME}_BEARER_TOKEN entries when missing.github/agents/specrun.agent.md)Drop any .json, .yaml, or .yml OpenAPI specification files into your specs folder
Create a .env file in your specs folder:
SpecRun will also ensure {API_NAME}_SERVER_URL and {API_NAME}_BEARER_TOKEN entries exist for each spec, adding empty placeholders when missing.
When {API_NAME}_SERVER_URL has a value, SpecRun updates the spec file on load:
servers entry.host, schemes, and basePath (no servers section in OpenAPI 2.0).SpecRun also watches the .env file and refreshes server URLs and auth config automatically after changes.
Add to your MCP configuration:
If installed on your machine:
Otherwise:
or with specific Node version:
The mcp-npx-node22 script file uses nvm to run specrun with Node.js 22.14.0, ensuring compatibility regardless of the default Node version on your system.:
If your default node is older than 22, run SpecRun with Node 22 directly:
npx -y node@22 ... runs the Node.js runtime, so the next argument must be a script path (for example ./node_modules/.bin/specrun).specrun@latest is an npm package spec and works directly with npx only when your current Node version already satisfies SpecRun requirements.The server automatically detects authentication from environment variables using these patterns:
| Pattern | Auth Type | Usage |
|---|---|---|
{API_NAME}_API_KEY | ๐๏ธ API Key | X-API-Key header |
{API_NAME}_TOKEN | ๐ซ Bearer Token | Authorization: Bearer {token} |
{API_NAME}_BEARER_TOKEN | ๐ซ Bearer Token | Authorization: Bearer {token} |
{API_NAME}_USERNAME + {API_NAME}_PASSWORD | ๐ค Basic Auth | Authorization: Basic {base64} |
SpecRun also creates .env placeholders for:
| Pattern | Purpose |
|---|---|
{API_NAME}_SERVER_URL | Base URL for the API |
{API_NAME}_BEARER_TOKEN | Token placeholder if missing |
If {API_NAME}_SERVER_URL is set, SpecRun writes that value into the spec before generating tools:
servers entry.host, schemes, and basePath.Updates to .env are applied automatically without restarting the MCP server.
The {API_NAME} is derived from the filename of your OpenAPI spec:
cars.json โ CARS_API_KEYgithub-api.yaml โ GITHUB_TOKENmy_custom_api.yml โ MY_CUSTOM_API_KEYTools are automatically named using this pattern:
{operation_id}{method}_{path_segments}Name normalization rules:
snake_case_Specs:
get_car_by_id (from operationId)get_user_repos (generated from GET /user/repos)Use the shared batch tool to run any tool with an array of inputs:
Batch responses return a consolidated JSON resource with per-item outputs.
For batches over 200 items, SpecRun requires explicit confirmation. This is to prevent accidental large runs that could cause performance issues or unintended consequences. The server will return a message asking for confirmation, and you can retry with confirmLargeBatch: true and the provided confirmLargeBatchToken to proceed.
Tool responses are returned as MCP resources with application/json content. Each resource includes:
Example resource payload:
Batch runs return a single consolidated resource containing all item results.
SpecRun exposes MCP prompts for common workflows:
Detailed prompt guide with examples: PROMPTS_README.md
list_apis: List loaded APIs/tools and ask the user to choose an endpointgenerate_api_call: Generate a ready-to-run JSON input payload for a toolexplain_api_schema: Explain parameters and request body schema with examplesgenerate_random_data: Generate random ready-to-run JSON payload samples for a toolHere's a minimal example that creates two tools:
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/specrun)<a href="https://allmcps.com/mcp/specrun"><img src="https://allmcps.com/api/badge/specrun?style=directory" alt="Specrun on AllMCPs" /></a>