MCP
Use Places as tools in AI assistants.
Subscribe on RapidAPIThe API exposes an MCP server (streamable HTTP) at /places/mcp with three tools:
| Tool | Input | Output | Same as |
|---|---|---|---|
places_autocomplete | { q, type?, country_code?, limit? } | { query, results } | GET /places/v1/autocomplete |
list_countries | {} | { countries } | GET /places/v1/countries |
list_country_states | { country_code } | { country_code, states } | GET /places/v1/countries/{country_code}/states |
The tools use the same validation, data and errors as REST. Failures return a tool error containing the same
{ success: false, error } JSON. All tools are read-only.
Connect an MCP client to the endpoint, for example:
export BASE_URL="https://places-api-cities-states-regions-countries.p.rapidapi.com"claude mcp add --transport http places "$BASE_URL/places/mcp"Subscribe on RapidAPI first, and connect with the details from its API page.