maviapi
# maviapi MCP server
[](https://www.npmjs.com/package/@maviapi/mcp) [](https://glama.ai/mcp/servers/kuzenlabs/maviapi-mcp)
**The unofficial API for any website, as MCP tools.** Give Claude, Cursor, or any MCP client live, structured JSON from websites that have no official API: Booking.com, Airbnb, Tripadvisor, Kiwi.com, Trainline, Hepsiburada, Yemeksepeti and more, plus any site you ask for. These are independent integrations, not affiliated with the sites.
```
You: Find me a 3-night Airbnb in Lisbon next month under €120 a night.
Claude: → search_apis "airbnb" → get_api "airbnb" → call_api airbnb/search {location: "Lisbon", …}
Here are the 5 best-rated options under €120…
```
Agents are bad at the web. Browsing is slow, burns tokens on raw HTML, and stalls on bot protection; hand-written scrapers break the next time the site changes its layout. [maviapi](https://maviapi.com) turns a website into a hosted, schema-first JSON API, and **monitors and repairs it when the site changes**, so the endpoint your agent depends on keeps answering. This server puts those APIs one tool call away.
**Works with no setup.** Out of the box it uses maviapi's shared demo key: 30 requests a minute and 300 a day per network, plus 3 free API builds per 30 days. [Create a free key](https://maviapi.com/sign-up?utm_source=github&utm_medium=readme&utm_campaign=mcp) for more.
**Missing a site? Your agent can start a draft.** `create_api` hands maviapi's build agent a URL and a description of the data you want. Follow progress with `get_build_status`, then review and publish the draft from your account before calling the public API. Build duration depends on the site and requested endpoints.
## Install
### Hosted: paste a URL, sign in
The same tools are hosted at **`https://mcp.maviapi.com/mcp`**, so nothing needs installing. In Claude or ChatGPT, add it as a custom connector and sign in to maviapi; calls use your plan's credits and the connection shows up on your [keys page](https://maviapi.com/dashboard/keys). Coding tools take the URL too:
```bash
claude mcp add --transport http maviapi https://mcp.maviapi.com/mcp
```
To try it without an account, connect to `https://mcp.maviapi.com/demo` (search and call on the shared demo key, no builds). More clients: [maviapi.com/docs#mcp](https://maviapi.com/docs#mcp).
The rest of this section runs the server locally from npm.
### Gemini CLI
```bash
gemini extensions install https://github.com/kuzenlabs/maviapi-mcp
```
The extension connects to the hosted server and signs you in to maviapi the first time a tool runs.
### Claude Code
Install it as a plugin from this repo's marketplace:
```
/plugin marketplace add kuzenlabs/maviapi-mcp
/plugin install maviapi@maviapi
```
The plugin reads `MAVIAPI_API_KEY` (and `MAVIAPI_TOOLS`) from your environment, so export your key before starting Claude Code to use it instead of the demo key.
Or add the server directly. Quote the package name so zsh doesn't offer to "correct" the `@` scope away:
```bash
claude mcp add maviapi -- npx -y '@maviapi/mcp'
# with your own key
claude mcp add maviapi -e MAVIAPI_API_KEY=mvk_live_... -- npx -y '@maviapi/mcp'
```
### Claude Desktop, Cursor, Windsurf, and others
Add this to the client's MCP config (`claude_desktop_config.json`, `~/.cursor/mcp.json`, …):
```json
{
"mcpServers": {
"maviapi": {
"command": "npx",
"args": ["-y", "@maviapi/mcp"],
"env": { "MAVIAPI_API_KEY": "mvk_live_..." }
}
}
}
```
Leave out `env` to try it with the demo key.
### VS Code
`.vscode/mcp.json`:
```json
{
"inputs": [{ "type": "promptString", "id": "maviapi-key", "description": "maviapi API key", "password": true }],
"servers": {
"maviapi": {
"command": "npx",
"args": ["-y", "@maviapi/mcp"],
"env": { "MAVIAPI_API_KEY": "${input:maviapi-key}" }
}
}
}
```
## Tools
| Tool | What it does |
|------|--------------|
| `search_apis` | Find an API for a website or topic ("flights", "turkish news", "booking.com"). Empty query lists the whole catalog. |
| `get_api` | An API's endpoints, their parameters, and the fields each one returns. |
| `call_api` | Call an endpoint and get live JSON back. List endpoints return 10 results unless you pass `limit`. An answer over 50,000 characters is cut to whole rows and flagged `truncated` (rows returned, rows asked); the HTTP API itself never cuts. |
| `create_api` | No API for the site you need? Starts a build from a URL and a plain-language description, and returns a `request_id`. |
| `get_build_status` | Where a build is: its phase, each endpoint with its test results or what went wrong, and what the build said last. `wait_seconds` returns as soon as something changes. A finished build is not public until it is published. |
| `request_endpoint` | Add one endpoint to an API that exists, or a variant of one under its own name (it ships beside the one it is like, e.g. `/search-flexible` beside `/search`). Previews first; `confirm: true` starts the build. |
| `list_requests` | Your API and endpoint requests, with their status. |
| `send_request_message` | Tell a build something in plain words: add detail, fix or drop a failed endpoint, try again. |
| `call_draft` | Call an endpoint of a draft before it is published. Costs no credits. |
| `publish_request` | Make a finished request live. Needs a key with the `requests:publish` permission. |
| `cancel_request` | Stop the build running for a request. |
| `report_endpoint_issue` | Report an endpoint that fails, comes back empty or repeats the same page. maviapi replays the call and checks the endpoint itself: a fault its own check confirms is repaired in place, the rest go to a person. You can report an API you have called with your own key. With no arguments it lists your reports. |
| `list_reports` | Your endpoint reports: the status (confirmed, received, fixed, not a bug, won't fix, duplicate) and the team's reply once a person has answered. |
| `get_key_info` | What the configured key may do: permissions, plan, remaining credits, limits. Works with any key of your own, with or without permissions. |
| `get_changelog` | What changed in an API, newest first: the date of each change, which one is live, and what it changed. |
The request tools need your own API key with request permissions. A key only calls data APIs unless you turn permissions on when you create it on the [keys page](https://maviapi.com/dashboard/keys): "Start and manage builds" for asking, steering, cancelling and reporting, and "Publish builds" for `publish_request`. `create_api` works with any key. Every rule (who may publish, one build per API at a time with up to 3 requests in line, the daily limits) is enforced by maviapi, not by this server.
A handful of generic tools keeps the agent's context small however large the catalog grows. If you rely on a few APIs, `MAVIAPI_TOOLS` also exposes each of their endpoints as its own typed tool, with a full input schema:
```bash
claude mcp add maviapi -e MAVIAPI_TOOLS=booking,airbnb,kiwi -- npx -y '@maviapi/mcp'
# adds booking_search, booking_explore, airbnb_listing_by_id, kiwi_search, …
```
## What you can ask
- "Cheapest flights from Istanbul to Berlin any day in the first week of December?" (Kiwi.com, FlightList)
- "Train or plane from London to Paris on Friday: which is cheaper?" (Trainline, Kiwi.com)
- "Top-rated restaurants in Istanbul on Tripadvisor, with review counts."
- "Bu hafta sonu İstanbul'da hangi konserler var?" (Bubilet)
- "What are gold and silver trading at right now?" (Selcoin)
- "What does 'serendipity' mean in Turkish? Give me every sense." (Sesli Sözlük)
`search_apis` with no query lists everything currently in the catalog. And for a site that is not there yet:
- "Start an API build for news.ycombinator.com with front-page stories, points and comment counts."
And for an API that exists but lacks something:
- "Tripadvisor has no endpoint for a hotel's reviews. Ask for one, tell me when it is ready, and show me a sample before you publish it."
Use your own account and API key when you need to review and publish a build from the [dashboard](https://maviapi.com/dashboard/requests). The shared demo key can start builds, but does not provide an owner dashboard session for them. If an API is already public, `get_api` and `call_api` use its current public build; a newly completed candidate may still await publication.
## Configuration
| Variable | Default | Purpose |
|----------|---------|---------|
| `MAVIAPI_API_KEY` | shared demo key | Your key from the [maviapi dashboard](https://maviapi.com/dashboard). |
| `MAVIAPI_TOOLS` | none | Comma-separated API slugs to expose as typed per-endpoint tools, or `all`. |
| `MAVIAPI_BASE_URL` | `https://api.maviapi.com` | Point at another maviapi deployment. |
## Pricing
Each successful call uses one credit; failed calls are free. Building an API is free on any plan, within the daily build limit (10 a day per account with your own key). New accounts start with a 7-day trial of 5,000 credits, no card required. Plans are on [maviapi.com/pricing](https://maviapi.com/pricing?utm_source=github&utm_medium=readme&utm_campaign=mcp).
## Development
```bash
pnpm install
pnpm test # unit and protocol tests, offline
pnpm build
pnpm test:live # smoke test of the built server against the real API
pnpm inspect # open the MCP Inspector against the built server
```
## License
MIT
TDQS
Scored across 5 tools
Each tool maps to a distinct stage of one workflow: search_apis discovers, get_api inspects endpoints/params, call_api executes, create_api drafts a new API, and get_build_status polls a build. The descriptions explicitly spell out the handoffs (e.g. search_apis → get_api → call_api), so misselection is unlikely even between get_api and call_api.
All names follow a consistent verb_noun snake_case pattern: search_apis, get_api, call_api, create_api, get_build_status. The get_* prefix is used coherently for read operations and create_ for mutation.
Five tools is tightly scoped to the domain: discovery, schema inspection, execution, provisioning, and async status. No tool looks redundant and none feels padded.
The core discover→inspect→call and request→build→status workflows are covered. There is a gap at the end of the lifecycle: publishing a draft must happen in the dashboard, and there is no tool to update, delete, or manage created APIs, nor to check credits.