Show HN: Generate AI agent tools from any OpenAPI spec (Claude, Cursor, etc.)

4 johnxie 0 6/4/2025, 5:23:21 PM
Hey HN,

We needed a better way to connect Claude and other AI clients to our API. Building MCP-compatible tools by hand didn’t scale, so we built a utility to generate them automatically from any OpenAPI spec, starting with Taskade's.

We’ve open-sourced it here: https://github.com/taskade/mcp

What it does:

- Converts OpenAPI 3.x specs into MCP tools in seconds

- Works with Claude, Cursor, and any MCP-compatible client

- Supports headers, fetch overrides, and response formatting

How to:

1. Install: `npm install --dev @taskade/mcp-openapi-codegen @readme/openapi-parser`

2. Point it at your OpenAPI file

3. Generate tools

4. Add them to your Claude or Cursor config

The repo also includes our own MCP server, built using this same codegen flow. We use it internally to power Taskade’s agents. Public SSE endpoint coming soon at mcp.taskade.com.

More on why MCP matters and what we’re building next: https://www.taskade.com/blog/mcp

Feedback and contributions welcome! ^_^

Comments (0)

No comments yet