# Mcpify

> Turn any OpenAPI 3.x spec into a working MCP server in one command.

- **Type:** MCP server
- **Install:** `agentstack add mcp-aloki-alok-mcpify`
- **Verified:** Pending review
- **Seller:** [aloki-alok](https://agentstack.voostack.com/s/aloki-alok)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [aloki-alok](https://github.com/aloki-alok)
- **Source:** https://github.com/aloki-alok/mcpify

## Install

```sh
agentstack add mcp-aloki-alok-mcpify
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# mcpify

Turn any OpenAPI 3.x or Swagger 2.0 spec into a working MCP server in one
command.

Point it at a spec (a file or a URL) and every API operation becomes an MCP
tool. There is no code to generate and nothing to wire up: mcpify reads the
spec, exposes one tool per operation, and proxies each tool call to the real
API.

```
mcpify ls openapi.yaml        # preview the tools a spec exposes
mcpify openapi.yaml           # serve it as an MCP server
```

## Install

Homebrew:

```
brew install aloki-alok/tap/mcpify
```

Or the install script:

```
curl -fsSL https://raw.githubusercontent.com/aloki-alok/mcpify/main/install.sh | sh
```

Or with Go (1.26+):

```
go install github.com/aloki-alok/mcpify@latest
```

Or grab a prebuilt binary from the [releases page](https://github.com/aloki-alok/mcpify/releases), or build from source:

```
git clone https://github.com/aloki-alok/mcpify
cd mcpify
go build -o mcpify .
```

## Use

Preview what a spec turns into, without starting anything:

```
mcpify ls https://petstore3.swagger.io/api/v3/openapi.json
```

Serve a spec:

```
mcpify ./petstore.yaml
```

In a terminal this opens a short menu: run a local server and get a connect
URL (the default, just press enter), print a client config to paste, or list
the tools. When an MCP client spawns mcpify over a pipe, it serves stdio
directly, so the same command works inside a client config. Pass `--stdio` to
force stdio serving in a terminal too.

Serve over HTTP at a fixed address:

```
mcpify --http :8080 ./petstore.yaml
```

The MCP endpoint is `http://localhost:8080/mcp`. The root URL serves a short
plain-text page describing the server, for anyone who opens it in a browser.

Forward auth and override the upstream base URL:

```
mcpify --base https://api.example.com -H "Authorization: Bearer $TOKEN" spec.json
```

Expose only read operations (GET and HEAD):

```
mcpify --read-only spec.yaml
```

Cut down a large spec to the tools you actually want. `--include` keeps
operations whose tool name, operationId, or path match; without a `*` this is
a case insensitive substring check, with one it is a `path.Match` glob (whole
string, case sensitive, `*` does not cross a `/`) against each of the three.
`--tag` keeps operations carrying that OpenAPI tag (case insensitive, exact
match). Both are repeatable, and an operation is kept if it matches any
`--include` or any `--tag`:

```
mcpify --tag pet --tag store spec.yaml
mcpify --include "*Pet*" spec.yaml
mcpify --include order spec.yaml
```

Update to the latest release in place:

```
mcpify upgrade
```

### Plug into an MCP client

Any client that launches a server over stdio works. For example:

```json
{
  "mcpServers": {
    "petstore": {
      "command": "mcpify",
      "args": ["--base", "https://api.example.com", "/path/to/openapi.json"]
    }
  }
}
```

## How arguments map

Each operation's path, query, header, and cookie parameters become tool
arguments. A JSON request body whose schema is an object is flattened so its
fields are top-level arguments too; a parameter wins if it shares a name. Other
body shapes (an array, a scalar) are taken as a single `body` argument. mcpify
routes each argument back to the right place when it builds the upstream
request.

## Options

| Flag | Meaning |
| --- | --- |
| `--base ` | upstream base URL, overriding the spec's `servers` |
| `-H, --header "Name: value"` | header sent on every upstream request (repeatable) |
| `--http ` | serve over HTTP at `addr` (MCP endpoint at `/mcp`) |
| `--stdio` | serve stdio even in a terminal, skipping the menu |
| `--read-only` | expose only GET and HEAD operations |
| `--include ` | keep only operations whose tool name, operationId, or path match (repeatable) |
| `--tag ` | keep only operations with this OpenAPI tag (repeatable) |
| `--timeout ` | upstream request timeout (default `30s`) |

## Scope

OpenAPI 3.0 and 3.1, in JSON or YAML. One operation maps to one tool. Request
bodies are JSON. Templated server URLs resolve from their variable defaults, or
override the base with `--base`. Auth is pass-through: the headers you supply are
forwarded upstream.

### Swagger 2.0

Swagger 2.0 specs work too. mcpify converts them to the same tools you would get
from a 3.x spec: the server URL comes from `schemes` + `host` + `basePath`
(preferring https), path, query, and header parameters map straight across, a
body parameter's schema is flattened the same way, and `$ref`s into
`definitions` are inlined. Operations that take `formData` (file uploads and
form fields) are skipped with a note, since mcpify only sends JSON bodies; the
rest of the spec still serves.

## License

MIT

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [aloki-alok](https://github.com/aloki-alok)
- **Source:** [aloki-alok/mcpify](https://github.com/aloki-alok/mcpify)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: flagged — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-aloki-alok-mcpify
- Seller: https://agentstack.voostack.com/s/aloki-alok
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
