maviapi

v0.2.10
io.github.kuzenlabs/maviapi-mcp Checked 1 hour ago Published 5 hours ago

The unofficial API for any website: hosted JSON APIs for sites with no official API, as MCP tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_apis Search maviapi APIs

Find a ready-made maviapi API for a website or topic, e.g. "hotels", "flights", "booking.com" or "turkish news". maviapi turns websites that have no official API into structured JSON endpoints, and monitors and repairs them when the site changes. Leave `query` empty to list every API. Next step: get_api, to see an API's endpoints and parameters.

ParameterTypeDescription
querystringWebsite, domain, or topic to look for. Empty lists everything.

get_api Show a maviapi API

Show one maviapi API's endpoints: what each returns, its parameters (required ones marked), the fields in the response, and whether each endpoint is working right now. Also lists endpoints that are being built. Accepts the API slug from search_apis, or the site's domain (e.g. "airbnb.com"). Read this before call_api. If the API lacks what you need, request_endpoint adds an endpoint to it.

ParameterTypeDescription
api *stringAPI slug (e.g. "booking") or the site's domain.

call_api Call a maviapi endpoint

Fetch live, structured JSON from a website through a maviapi endpoint. `api` is the API slug (or domain), `endpoint` the endpoint name or path from get_api, and `params` its parameters, path parameters such as {id} included. List endpoints return 10 results unless you pass `limit`; page with `offset`. Each successful call uses one maviapi credit. An answer over 50,000 characters is cut to whole rows here and flagged `truncated` (the HTTP API returns it in full).

ParameterTypeDescription
api *stringAPI slug (e.g. "booking") or the site's domain.
endpoint *stringEndpoint name (e.g. "search") or path (e.g. "/search").
paramsobjectEndpoint parameters, as listed by get_api.

create_api Build a new maviapi API

Start an API draft for a website that no catalog API covers. maviapi's build agent studies the site and builds a JSON API from a plain-language description. This returns a request_id at once; follow it with get_build_status. Build completion does not publish the API. Use your own account and key to review and publish the draft in the dashboard. With the shared demo key each network gets 3 free builds per 30 days.

ParameterTypeDescription
description *stringThe data wanted from the site, as specific as you can: pages, fields, filters. E.g. "front-page stories with title, url, points, comment count and author".
url *stringThe website, e.g. "https://news.ycombinator.com".
build_anywaybooleanBuild even though the catalog already has an API for this site (it lacks what you need).

get_build_status Check a maviapi build

Where a build started with create_api or request_endpoint is: its phase, each endpoint with its test results or what went wrong, and what the build said last. A finished build is not public until it is published (publish_request, or the owner in the dashboard). Pass `wait_seconds` (up to 50) and the call returns as soon as something changes, so you can follow a build without sleeping. With the shared demo key it reports the plain build status only.

ParameterTypeDescription
request_id *stringThe request_id create_api or request_endpoint returned.
wait_secondsintegerHold the call up to this many seconds (max 50) until the build's state changes.

request_endpoint Ask for a new maviapi endpoint

Add one endpoint to an API that already exists, or a variant of one of its endpoints under its own name. Use it when get_api shows the API lacks the data, or you need an endpoint to answer differently. Existing endpoints never change: a variant ships as a new endpoint beside the one it is like, named after what differs (e.g. /search-flexible beside /search), never with a number. If an endpoint is simply broken, use report_endpoint_issue instead: it is repaired in place. Without `confirm` nothing is built: the tool answers with the endpoint as it would be built, for the user to agree to. Call i…

ParameterTypeDescription
api *stringAPI slug (e.g. "booking") or the site's domain.
description *stringWhat the endpoint returns, as specific as you can: the page it reads, the fields per record, the parameters. E.g. "The reviews of one hotel, newest first: author, rating, date, text. Parameter: hotel…
changestringFor a variant of an existing endpoint (same data, different result): that endpoint's path, e.g. "/search". Give the new endpoint its own name in `path`, after what differs: "/search-flexible". Never a…
confirmbooleantrue starts the build. Leave it out to preview first.
pathstringThe new endpoint's path, lowercase with dashes, no parameters in it. E.g. "/reviews" or "/hotel-photos". Required with `change`.

list_requests List my maviapi requests

The API and endpoint requests made with this account, newest first, with their status. Filter by `api` (slug) or `status` (queued, building, deploying, published, failed). Needs an API key with a request permission.

ParameterTypeDescription
apistringOnly requests for this API slug.
statusstringOnly requests in this status.

send_request_message Message a maviapi build

Say something to the build of a request, in plain words: add detail, ask it to fix or drop an endpoint that failed, or to try again after a failure (e.g. "fix /reviews", "also return the review date", "try again"). Returns the build's answer. Needs an API key with the requests:write permission.

ParameterTypeDescription
message *stringWhat to tell the build.
request_id *stringThe request_id from request_endpoint or create_api.

call_draft Call a draft maviapi endpoint

Call an endpoint of a request's draft before it is published, to check it returns the right data. Only endpoints get_build_status shows as ready answer. Draft calls cost no credits. Needs an API key with a request permission.

ParameterTypeDescription
endpoint *stringThe endpoint path as get_build_status lists it, e.g. "/reviews".
request_id *stringThe request_id from request_endpoint or create_api.
paramsobjectEndpoint parameters, path parameters included.

publish_request Publish a maviapi request

Make a finished request live: every endpoint that passed its checks becomes part of the public API. Publishing changes what everyone who calls the API gets, so do it only when the user asked for it. Works once get_build_status says the request is ready. Needs an API key with the requests:publish permission.

ParameterTypeDescription
request_id *stringThe request_id from request_endpoint or create_api.

cancel_request Cancel a maviapi build

Stop the build that is running for a request. What was built before stays as it was. Needs an API key with the requests:write permission.

ParameterTypeDescription
request_id *stringThe request_id from request_endpoint or create_api.

report_endpoint_issue Report a broken maviapi endpoint

Tell maviapi that an endpoint that exists returns the wrong thing: it fails, comes back empty, or repeats the same page. Use this instead of asking for a change when the endpoint is simply broken: the fix lands on the endpoint itself, for everyone. maviapi replays the call at once and then runs its own check of the endpoint. If that check fails too the report is confirmed and the endpoint is queued for repair; if not (a fault only certain parameters show, a repeated page, wrong values) a person on the team reads the report. A report's status is confirmed, fixed or received, and once a person o…

ParameterTypeDescription
apistringAPI slug (e.g. "booking") or the site's domain.
descriptionstringWhat is wrong, in a sentence or two: what you asked for, what came back, what you expected. E.g. "page=2 returns the same 30 restaurants as page 1."
endpointstringThe endpoint's name or path, e.g. "/restaurants".
paramsobjectThe parameters of a call that shows the fault, e.g. {"geo": "187147", "page": 2}.
request_idstringOptional: the x-request-id header of the failed call, so the team can find that exact call in its logs.

list_reports List your maviapi endpoint reports

The endpoint reports made with this key's account, newest first: the API and endpoint, the status, and the team's reply when a person has answered. Status: confirmed (maviapi's own check fails too, a repair is under way), received (a person reads it), fixed, not_a_bug, wont_fix or duplicate. Needs an API key with a request permission (requests:write or requests:publish).

get_key_info Show this maviapi key

What the configured API key may do: its permissions, the account's plan and remaining credits, and the limits that apply. Check it before starting something that needs a permission or uses credits. Works with any API key of your own.

get_changelog Show what changed in a maviapi API

What changed in an API, newest first: the date of each change, which one is live, and what it changed (endpoints added, fields changed, fixes). Use it when an endpoint behaves differently than before.

ParameterTypeDescription
api *stringAPI slug (e.g. "booking") or the site's domain.