AI assistants (MCP)
Search Parchment's places and plan trips from Claude and other assistants over the Model Context Protocol.
Parchment serves the same tools that power Ask over the Model Context Protocol (MCP). Connect an MCP client, and its model can search your server's places and work out how to reach them: your assistant does the reasoning, Parchment supplies real places, timetables and conditions.
Unlike Ask, MCP needs no OpenRouter key. The client brings its own model.
Endpoint
https://<your server>/mcpA stateless Streamable HTTP server: one JSON-RPC message per POST, answered with JSON. There is no event stream and no session, so GET and DELETE answer 405.
Access
Every request needs a user with the premium:ask permission (the Premium role) and Ask turned on in their settings. A request without valid credentials gets 401, and a user without the permission gets 403. Both come with a JSON-RPC error body.
There are two ways to connect. Both hand the client a token limited to the scopes you choose:
- Sign in with OAuth. Hosted connectors in claude.ai and ChatGPT, and any client that follows the MCP authorization spec, find Parchment's sign-in by themselves. Add the server URL, sign in to Parchment when the client asks, and choose what it can do.
- An API key. Create one in Settings → Connections → API keys, choose its scopes and how long it lasts, and send it as a header:
Authorization: Bearer pat_…The token is shown once. Parchment stores only a hash of it, so a lost token can't be recovered. Revoke it and create a new one.
Apps you signed in to show up under Settings → Connections → Connected apps, and keys under API keys. Revoking either one cuts off access at once. The same page shows your server's connector URL, ready to copy.
Scopes
| Scope | What it allows | Tools |
|---|---|---|
places:read | Search places and see their details | find_places, find_categories, browse_category, get_place, locate, what_is_here, places_within_reach, search_along_route, find_place_on_web |
trips:read | Directions, transit departures and bike share | plan_trip, travel_times, transit_trips, transit_departures, transit_line, bikeshare_nearby |
weather:read | Weather, air quality and wildfires | weather, wildfires |
library:read | Your saved places, collections, routes, canvases and vehicles | saved_places, my_collections, my_routes, my_canvases, my_vehicles |
library:write | Save places, and build, share and archive routes and canvases | save_place, create_route, edit_route, create_canvas, share_canvas, archive |
tools/list shows only the tools a token's scopes cover. Calling any other tool answers 403 with WWW-Authenticate: Bearer error="insufficient_scope", scope="<the scope it needs>", so the client knows what to ask for. The same scopes limit the token on the REST API. A scoped token can never manage tokens, sessions or your account.
How the OAuth sign-in works
A 401 from /mcp carries WWW-Authenticate: Bearer resource_metadata="https://<your server>/.well-known/oauth-protected-resource/mcp". From there a client follows the standard steps:
| Step | Endpoint |
|---|---|
| Protected resource metadata (RFC 9728) | GET /.well-known/oauth-protected-resource/mcp |
| Authorization server metadata (RFC 8414) | GET /.well-known/oauth-authorization-server |
| Client registration (RFC 7591) | POST /oauth/register |
| Authorization, with the consent screen in the web app | GET /oauth/authorize |
| Code exchange and refresh | POST /oauth/token |
| Revocation (RFC 7009) | POST /oauth/revoke |
- Every client is public. PKCE with
S256is required, andresourcemust name this server (RFC 8707). - Redirect URIs must be HTTPS, loopback HTTP (any port) or an app's own scheme.
- Codes work once, within 5 minutes. Access tokens last an hour.
- Each refresh returns a new pair of tokens and retires the old pair. A grant that isn't refreshed for 90 days expires.
A session token still works
A full sign-in session is accepted too (Authorization: Bearer <session token>), with no scope limits. Prefer an access token: it can't reach your account, and revoking it signs nothing else out.
Connecting a client
claude.ai and ChatGPT
Add a custom connector with the URL https://<your server>/mcp (copy it from Settings → Connections). The first time you use it, the connector opens Parchment's sign-in and asks what it may do.
Claude Code
claude mcp add --transport http parchment https://<your server>/mcpRun /mcp in Claude Code to sign in. To use an access token instead, add --header "Authorization: Bearer <token>".
Claude Desktop
Claude Desktop's config file cannot set headers on a remote server, so bridge it with mcp-remote. In claude_desktop_config.json:
{
"mcpServers": {
"parchment": {
"command": "npx",
"args": [
"mcp-remote",
"https://<your server>/mcp",
"--header",
"Authorization:${PARCHMENT_AUTH}"
],
"env": {
"PARCHMENT_AUTH": "Bearer <access token>"
}
}
}
}The header goes through an environment variable because some platforms split arguments that contain a space. Leave out --header and env, and mcp-remote signs in with OAuth in your browser.
Any other client that speaks Streamable HTTP works the same way.
Tools
| Tool | What it does | Returns |
|---|---|---|
find_places | Search by name or free text ("ramen", "Blue Bottle") around near | Places ranked by relevance and distance |
find_categories | Look up category ids for a kind of place ("bakery") | Category ids and names |
browse_category | List one category nearest-first, optionally filtered by OpenStreetMap tags | Places, nearest first |
get_place | Full details for one place id | Hours, busiest hours, amenities, website, and ratings (out of 5) and reviews with their source. Foursquare and Google data needs premium data access |
locate | Resolve an address, neighbourhood, city or landmark | Up to 3 matches with coordinates |
find_place_on_web | Read a business the map doesn't have from its own website (see Places from the web) | The place, marked not on the map yet; the mapped place if the map has it after all; or why it couldn't be confirmed |
what_is_here | What is at a point at | The address and up to 5 places right there, nearest first |
places_within_reach | Places within a travel time by walking, cycling, driving or transit from from | Places inside the reachable area |
search_along_route | Places along the route between two points, optionally through stops, by category_ids or query | Places with distance along the route and the minutes each stop adds |
plan_trip | A door-to-door trip as Directions plans it, optionally through stops with time spent at each, a kind of travel and a time. A kind plans on that Directions tab: biking is your own bike, never bike share | When to leave and arrive, and each move: walks, rides, bike share stations, transit lines |
transit_trips | Transit trips from from to to, departing at depart_at or arriving by arrive_by | When to leave and arrive, each line, direction and stop, and live delays |
transit_departures | Live departure board at a named station or near a point | Next runs per line with minutes away, delays, cancellations and service alerts |
transit_line | One line by the name riders use (L, M15), near at or a station it calls at | Its stops in order, how many vehicles are running and where (when the feed publishes positions), and its service alerts |
travel_times | Door-to-door time by walking, cycling, driving and transit, to compare them. Needs premium navigation | Minutes per mode, or null where there is no route |
bikeshare_nearby | Bike share stations around near | Live counts of bikes, e-bikes and free docks, nearest first |
weather | Conditions at at | Temperature, wind, air quality, and whether rain is due in the next few hours |
wildfires | Fires and smoke within radius_km of near (default 100) | Named fires nearest first with acres, containment and start date (US only), satellite detections from the last 2 days, and smoke overhead (North America) |
saved_places | Your saved places outside private collections, filtered by query | Names, addresses and coordinates |
my_vehicles | Your cars, bikes and scooters | Where each was last parked |
my_collections | Your collections that saved places can join, without private ones | Each collection's id, its name when it isn't encrypted, how many places it holds and a few of them |
save_place | Save a place a tool returned to a collection (collection_id, or your first one), optionally under a new name. A place already saved is added to the collection, not saved twice. Needs library access | The saved name and collection |
create_route | Build a route through points in order, as the route builder snaps one, by cycling, walking or driving, and save it to Routes in your library. loop returns to the start. Needs library access (Basic or Premium) | The route's id, distance, minutes and climb |
edit_route | Change a route you can read: new points re-route it, a new mode re-snaps it, or just a new name. Needs library access | The route's id, name, distance, minutes and climb |
my_routes | Your saved routes | Each route's id, name, mode, distance, minutes and climb |
create_canvas | Save a canvas to your library with saved routes (route_ids), points in named layers, and areas shading how far a travel time reaches from a point. Points can be place ids, saved places like home, or coordinates. Needs library access (Basic or Premium) | The new canvas's id, name and layer count |
my_canvases | Your canvases, without private ones | Each canvas's id, name, layer count and whether it has a link |
share_canvas | A public link to a canvas that anyone can open. Private canvases can't have one. Needs library access | The link |
archive | File a route or canvas away, or bring it back with restore. Nothing is deleted. Needs library access | Whether it is now archived |
The in-app Ask can also search the web. MCP has no web_search tool, since your client can search the web itself.
Each result is JSON in a text block. Place lists include each place's id, name, type, address, coordinates, distance, opening hours and whether it is open now. Pass an id to get_place for the rest.
There is no map here, so a tool needs a point. Pass coordinates, a place id another tool returned, the name of one of your saved places (home, work), or a place name, which is looked up near you. Saved places are offered only when Ask is allowed to use your location in its settings. A search without either fails with isError: true and a message telling the model to do that, which most models act on by themselves.
Times are written and read in the trip's own time zone: give depart_at as local time, like 2026-11-20T18:30, and results come back as Fri 18:42.
Searches run as your account, within the token's scopes, in the language your client sends in Accept-Language, with your unit system and your active vehicles. The assistant sees only what the tools return, and changes your library only through the tools above. Saved places in private collections, private routes, the names you give routes, friends' locations and location history are end-to-end encrypted, so the server cannot hand them over. A route the assistant builds is named by the assistant until you rename it.