open-index/open-npm huggingface dataset:
npm package: @getapis/mcp-vendor
Description: This package runs a local MCP server that wraps the API Hub **vendor platform API**.
Latest version: 0.1.0

# Vendor MCP server (publish APIs)

This package runs a local MCP server that wraps the API Hub **vendor platform API**.

It lets a vendor create and update API listings from an MCP client (Claude Code, Cursor, etc).

## Setup

You need a personal access token (PAT) with:

- `vendor:read` for listing APIs
- `vendor:write` for creating/updating APIs and plans

Environment variables:

- `APIHUB_BASE_URL` (example: `http://localhost:3000`)
- `APIHUB_PAT` (your PAT secret)

### Run (npm)

Run it directly:

- `APIHUB_BASE_URL=http://localhost:3000 APIHUB_PAT=... npx -y @getapis/mcp-vendor`

Or install globally:

- `npm i -g @getapis/mcp-vendor`
- `APIHUB_BASE_URL=http://localhost:3000 APIHUB_PAT=... mcp-vendor`

### Run (monorepo)

- `APIHUB_BASE_URL=http://localhost:3000 APIHUB_PAT=... pnpm --filter @getapis/mcp-vendor dev`

### MCP client config (example)

Most MCP clients can run a server via a command. For example, you can use:

- command: `npx`
- args: `["-y", "@getapis/mcp-vendor"]`

## Tools

- `list_apis`
- `create_api`
- `update_api`
- `create_plan`
- `update_plan`

### API fields

Create/update supports:

- `apiName` (title)
- `description` (short description)
- `tags` (up to 5)
- `aboutMarkdown` (About page markdown)
- `openapiText` (YAML or JSON as text) **or** `openapiDocument` (JSON object)
- `version`
- `upstreamBaseUrl`

Plans support:

- `name`
- `priceCents`
- `currency` (default: `usd`)
- `rpmLimit`
- `monthlyQuotaRequests`

Not supported here:

- API testing configuration