pluit
Use this as a read-only MCP server for the Petstore API to look up pets, inventory, orders, and users.
Find pets by status:
available,pending, orsold.Find pets by tags.
Get a pet by ID.
Get inventory counts by status.
Get an order by ID.
Get a user by username.
Log a user in or out.
No create, update, or delete operations are exposed; all listed tools are marked read-only, idempotent, and non-destructive.
Serves GitHub's REST API (the github.com rest-api-description spec) as curated MCP tools, letting you pick, rename and describe repository, issue and other operations, store a token in the OS keyring, and test calls such as fetching issues for a repo.
PlugIt
Plug any REST API into your AI.
plugit turns an OpenAPI 3.0/3.1, Swagger 2.0 or Postman v2 spec into a curated, safe MCP server. You pick and polish the tools in a terminal UI, and PlugIt serves them over stdio to Claude Desktop, Claude Code, OpenAI Codex, Cursor, VS Code (GitHub Copilot), Windsurf, Gemini CLI, LM Studio and any other MCP client.
Website & live demo · Install · Quick start · Commands · Security

Table of Contents
Overview | |
Setup | Install · Try it in 30 seconds · Curate and install · Supported clients |
Configure | Policy modes · OAuth2 · Over HTTP instead of stdio |
Reference | Commands · Security model |
Release | Verifying a release · Build from source · License |
Related MCP server: Any-API MCP Server
Why PlugIt
1 | Local only | One binary. No accounts, no hosted backend, no LLM calls, no telemetry. |
2 | Safe by default | Read-only mode, private-network blocking, credentials bound to the base URL you pin, secrets only from the OS keyring or env vars, and redaction everywhere. |
3 | Curated | Pick, rename and describe tools in a terminal UI with a live token budget, so a 1,000-operation API doesn't flood the model's context. Keep only the response fields you need, and lint every description for instructions hidden in a spec. |
4 | Observable | A live call inspector, per-tool stats and a one-shot |
Status: v0.1.0, the first release. The CLI and the plugit.yaml format may still change
before 1.0; config changes come with a version bump and an automatic migration.
Install
Method | How |
Go |
|
Prebuilt binary | Download the archive for your platform from the latest release and put |
go install github.com/swayam5342/plugit/cmd/plugit@latestgo install needs Go (any recent version fetches the 1.26.7 toolchain plugit asks for) and puts
plugit in ~/go/bin (%USERPROFILE%\go\bin on Windows), which should be on your PATH.
Release archives on GitHub come with SHA-256 checksums, a cosign signature, SBOMs and build provenance. SeeVerifying a release.
Try it in 30 seconds: plugit run
plugit run serves a spec with nothing saved. It's read-only (GET, HEAD and OPTIONS only)
and refuses to start if the selection is bigger than --max-tools (40 by default).
Add it to your MCP client's config, for example Claude Desktop's claude_desktop_config.json:
{
"mcpServers": {
"petstore": {
"command": "/full/path/to/plugit",
"args": ["run", "https://petstore.swagger.io/v2/swagger.json"]
}
}
}Restart the client, and ask Claude to "find available pets using petstore".
Flag | Use |
| Narrow big APIs ( |
| Pass a credential as a reference, never a value: set |
| Required whenever a credential is set, so a spec can't point your key at another host. |
Curate and install: add, install
plugit add github --prefix gh https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json
# confirm the base URL to pin, then pick tools in the terminal UI:
# space toggle · / filter · r rename · e describe · p tool policy · m API mode · s save
plugit auth github # store the token in the OS keyring (hidden input)
plugit try github "GET /repos/{owner}/{repo}/issues" --arg owner=me --arg repo=x # one test call, secrets redacted
plugit install github # pick clients from a list (detected ones are marked)
plugit install github --client codex,vscode # or name themAlready have a working plugit run command line? Turn it into a saved config:
plugit add pets https://petstore.swagger.io/v2/swagger.json --from-run --tags pet --base-url https://petstore.swagger.io/v2Supported clients
| Where the entry goes |
|
|
| runs |
| runs |
|
|
| VS Code's user |
|
|
|
|
|
|
For JSON configs,install shows a diff, backs the file up and asks before writing. Only
plugit's own entry changes, and it never contains a secret. Claude Code and Codex own their
configs, so plugit runs their CLI instead, or prints the command if the CLI isn't on PATH.
Any other stdio MCP client works too: point it at plugit serve <name>.
Policy modes
| Read tools (GET, HEAD, OPTIONS) | Write tools (POST, PUT, PATCH, DELETE) |
| offered | not offered; the model never sees them |
| offered | offered; the client asks you before each call (refused if it can't ask) |
| offered | offered and run without asking |
Switch with m in the picker (plugit add, or plugit edit <name> later). Moving to full
takes a second press. Then reconnect your client (in Claude Code, /mcp); no reinstall is
needed, because the client's entry is just plugit serve <name>.
Per tool,p adds confirm or deny on top of the API mode. These can only make a tool stricter.
OAuth2
APIs that use OAuth2 get auth.type: oauth2 in their plugit.yaml:
auth:
type: oauth2
flow: device_code # or client_credentials
token_url: https://auth.example.com/oauth/token
device_url: https://auth.example.com/oauth/device/code
client_id: my-client-id
scopes: [read]
# secret: keyring:plugit/my-client # the client secret, required for client_credentialsThen run plugit auth <name>:
Flow | What happens |
| Shows a URL and a code to approve in the browser, and keeps the refresh token in the OS keyring. |
| Stores the client secret and checks it. |
Access tokens stay in memory, go only to the pinned base URL, and are redacted everywhere.
Over HTTP instead of stdio
For clients that connect to a URL, serve on loopback:
plugit serve github --http :8931
# listening on http://127.0.0.1:8931/mcp; the token is in the file it names
claude mcp add --transport http github http://127.0.0.1:8931/mcp \
--header "Authorization: Bearer $(cat <token file>)"Only loopback addresses are accepted, every request needs the token, and browser requests
from other origins are refused.--new-token replaces the token.
Commands
Command | What it does |
| Serve a spec on stdio with nothing saved (read-only by default) |
| Fetch, pin the base URL, pick tools, save |
| Reopen the picker |
| Store or rotate the credential in the OS keyring |
| One call, printing the redacted request and the result (no |
| Live inspector of the calls MCP clients made ( |
| Calls, error rate, p50/p95 latency and token budget per tool |
| Quality and safety checks, including hidden instructions in descriptions ( |
| The MCP server (what clients run) |
| Add to or remove from one or more MCP clients |
| Re-fetch the spec, review what changed, adopt it (overrides kept, base URL never changed) |
| Manage saved APIs |
| Check configs, credentials and client installs, and flag relaxed security settings |
Each API has a hand-editable apis/<name>/plugit.yaml; unknown keys and literal secrets are rejected.
Configs live in your OS config directory, or wherever --config-dir points:
OS | Config directory |
Windows |
|
macOS |
|
Linux |
|
Security model
PlugIt treats the spec, the model's tool arguments and the API's responses as untrusted.
Guard | What it means |
Read-only by default | Write tools need |
The host never comes from the model or the spec | You pin |
SSRF guard | The resolved IP is checked at connect time: loopback and private ranges need |
No credentials over plain http, no risky paths | A config that would send a credential to a remote host over |
Secrets | Come from the OS keyring or env vars only, never from config files or the command line, and are redacted (raw, percent-encoded and base64) from logs, errors and every tool result. |
Strict arguments | Validated against the schema; unknown arguments, |
Isolated spec parsing | Untrusted specs are parsed in a child process with limits on size, |
Report vulnerabilities privately: seeSECURITY.md.
Verifying a release
cosign verify-blob checksums.txt --bundle checksums.txt.sigstore.json \
--certificate-identity-regexp '^https://github.com/swayam5342/plugit/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum --ignore-missing -c checksums.txt
gh attestation verify plugit_<version>_<os>_<arch>.tar.gz --repo swayam5342/plugitBuild from source
go build -o plugit ./cmd/plugit
go test -race ./...License
Available Tools
8 toolsfindPetsByStatusCRead-onlyIdempotent
Finds Pets by status.
Inputs: status (required).
findPetsByTagsCRead-onlyIdempotent
Finds Pets by tags.
Inputs: tags (required).
getInventoryCRead-onlyIdempotent
Returns pet inventories by status.
Inputs: no named parameters.
getOrderByIdBRead-onlyIdempotent
Find purchase order by ID.
Inputs: orderId (required).
getPetByIdCRead-onlyIdempotent
Find pet by ID.
Inputs: petId (required).
getUserByNameCRead-onlyIdempotent
Get user by user name.
Inputs: username (required).
loginUserCRead-onlyIdempotent
Logs user into the system.
Inputs: password, username.
logoutUserBRead-onlyIdempotent
Logs out current logged in user session.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource and action, with clear boundaries between pets, orders, users, inventory, and auth. The two findPetsBy* tools are distinguishable by status versus tags, though an agent may occasionally hesitate if it wants both filters.
All tools use camelCase and follow a predictable verb_noun or verb_resource pattern. The naming is uniform and readable throughout.
Eight tools is well-scoped for a focused petstore API surface. Each tool corresponds to a clear endpoint, with no obvious padding.
The surface is read-only for pets, orders, and users: there are no create, update, or delete operations, and no order placement or user registration. This leaves major lifecycle gaps that would block common agent workflows.
Maintenance
Related MCP Connectors
MCP server for AI access to Swagger by SmartBear.
AI-native mock API server with MCP. Create REST/SOAP mocks from Claude, Cursor, or Windsurf.
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
The official MCP Server from Mia-Platform to interact with Mia-Platform Console
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceGenerate an MCP server for any OpenAPI documented endpoint.336MIT
- AlicenseBqualityDmaintenanceA configurable MCP server that adapts any HTTP API into an MCP toolset with generic HTTP tools (GET, POST, PUT, DELETE) and pluggable authentication. Includes API discovery scripts and supports dynamic tool generation from OpenAPI specs or wordlist scans.51MIT
- FlicenseNot gradedqualityDmaintenanceConverts any Swagger/OpenAPI specification into an MCP server, enabling AI assistants to intelligently query API endpoints, schemas, and generate code examples.18-
- AlicenseNot gradedqualityCmaintenanceTurn any OpenAPI / Swagger spec into an agent-ready MCP server.27 npm1MIT