Parchment Docs
Usage

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>/mcp

A 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

ScopeWhat it allowsTools
places:readSearch places and see their detailsfind_places, find_categories, browse_category, get_place, locate, what_is_here, places_within_reach, search_along_route, find_place_on_web
trips:readDirections, transit departures and bike shareplan_trip, travel_times, transit_trips, transit_departures, transit_line, bikeshare_nearby
weather:readWeather, air quality and wildfiresweather, wildfires
library:readYour saved places, collections, routes, canvases and vehiclessaved_places, my_collections, my_routes, my_canvases, my_vehicles
library:writeSave places, and build, share and archive routes and canvasessave_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:

StepEndpoint
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 appGET /oauth/authorize
Code exchange and refreshPOST /oauth/token
Revocation (RFC 7009)POST /oauth/revoke
  • Every client is public. PKCE with S256 is required, and resource must 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>/mcp

Run /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

ToolWhat it doesReturns
find_placesSearch by name or free text ("ramen", "Blue Bottle") around nearPlaces ranked by relevance and distance
find_categoriesLook up category ids for a kind of place ("bakery")Category ids and names
browse_categoryList one category nearest-first, optionally filtered by OpenStreetMap tagsPlaces, nearest first
get_placeFull details for one place idHours, busiest hours, amenities, website, and ratings (out of 5) and reviews with their source. Foursquare and Google data needs premium data access
locateResolve an address, neighbourhood, city or landmarkUp to 3 matches with coordinates
find_place_on_webRead 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_hereWhat is at a point atThe address and up to 5 places right there, nearest first
places_within_reachPlaces within a travel time by walking, cycling, driving or transit from fromPlaces inside the reachable area
search_along_routePlaces along the route between two points, optionally through stops, by category_ids or queryPlaces with distance along the route and the minutes each stop adds
plan_tripA 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 shareWhen to leave and arrive, and each move: walks, rides, bike share stations, transit lines
transit_tripsTransit trips from from to to, departing at depart_at or arriving by arrive_byWhen to leave and arrive, each line, direction and stop, and live delays
transit_departuresLive departure board at a named station or near a pointNext runs per line with minutes away, delays, cancellations and service alerts
transit_lineOne line by the name riders use (L, M15), near at or a station it calls atIts stops in order, how many vehicles are running and where (when the feed publishes positions), and its service alerts
travel_timesDoor-to-door time by walking, cycling, driving and transit, to compare them. Needs premium navigationMinutes per mode, or null where there is no route
bikeshare_nearbyBike share stations around nearLive counts of bikes, e-bikes and free docks, nearest first
weatherConditions at atTemperature, wind, air quality, and whether rain is due in the next few hours
wildfiresFires 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_placesYour saved places outside private collections, filtered by queryNames, addresses and coordinates
my_vehiclesYour cars, bikes and scootersWhere each was last parked
my_collectionsYour collections that saved places can join, without private onesEach collection's id, its name when it isn't encrypted, how many places it holds and a few of them
save_placeSave 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 accessThe saved name and collection
create_routeBuild 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_routeChange a route you can read: new points re-route it, a new mode re-snaps it, or just a new name. Needs library accessThe route's id, name, distance, minutes and climb
my_routesYour saved routesEach route's id, name, mode, distance, minutes and climb
create_canvasSave 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_canvasesYour canvases, without private onesEach canvas's id, name, layer count and whether it has a link
share_canvasA public link to a canvas that anyone can open. Private canvases can't have one. Needs library accessThe link
archiveFile a route or canvas away, or bring it back with restore. Nothing is deleted. Needs library accessWhether 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.