Get started
AI & agents

MCP server

MCP server

Give an AI assistant Mountaya's routing, places, and terrain as tools. Add this URL to any MCP client:

https://mcp.mountaya.com/

The server is read-only: 14 tools, 6 prompts, and the Data API schema. Your organization needs the Data API, which an owner or admin switches on by adding a card.

Connect your assistant

Assistants connect over OAuth: add the URL, sign in to Mountaya, and choose a key. There is nothing to copy.

On Claude.ai or in Claude Desktop, open Settings → Connectors, add a custom connector, and paste the URL.

Your assistant then opens Mountaya in your browser:

1

Sign in

Sign in with your Mountaya account.

2

Check the site

The consent screen names the site that authorizing sends you to. An assistant added by URL is marked Unverified application, because its name is only what it says about itself. Authorize it only if you trust that site.

3

Choose a key

Pick the publishable key the assistant acts with. It needs the mcp scope, and owners and admins can create one on the spot. Select Authorize to return to your assistant.

Connect a client with a key pair

A client nobody signs into, such as a local agent, a script, or a server, sends two headers on every request:

HeaderValue
X-API-KeyA publishable key with the mcp scope
X-Secret-KeyA secret key of the same organization
.vscode/mcp.json
{
  "servers": {
    "mountaya": {
      "type": "http",
      "url": "https://mcp.mountaya.com/",
      "headers": {
        "X-API-Key": "pk_your_publishable_key",
        "X-Secret-Key": "sk_your_secret_key"
      }
    }
  }
}

Cursor takes the same url and headers under mcpServers. To test the pair, call a tool from a terminal:

cURL
curl https://mcp.mountaya.com/ \
  -H "X-API-Key: $MOUNTAYA_PUBLISHABLE_KEY" \
  -H "X-Secret-Key: $MOUNTAYA_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "terrainSamples", "arguments": {"locations": [[6.8712, 45.9231]]}}}'
Response
event: message
data: {"jsonrpc":"2.0","id":1,"result":{"content":[{"type":"text","text":"…"}],"structuredContent":{"count":1,"coveredCount":1,"zoom":14,"resolutionMeters":3.322903422874434,"samples":[{"point":[6.8712,45.9231],"elevation":1037.6000000000006,"slope":5.436244171334218,"aspect":108.43494882290898,"aspectOctant":"EAST","steepnessBand":null,"distanceMeters":null}]}}}

Tools

Each tool runs the Data API query of the same name, with the same input and result.

ToolsGuide
directions, suggestions, isochrones, matrixRouting
geocode, reverseGeocode, pois, searchPlaces
itinerary, exportItineraryItineraries
analyzeGeometryAnalysis
terrainSamples, terrainProfile, terrainGridTerrain

A failed call comes back as a tool error with the Data API's error code, so the assistant can correct itself.

Prompts

Prompts are ready-made procedures that name the tools to call, in order. Clients that support prompts list them beside the tools.

PromptDoes
plan-a-routeRoutes between named places and says what the route involves
suggest-routesProposes routes near a place for a distance and ascent
compare-alternative-routesCompares options on distance, ascent, and terrain
analyze-terrain-along-routeReports elevation, slope, and aspect along a saved route
find-reachable-areaFinds how far you get from a point in a time or distance
export-a-routeExports a saved route as a file

The server also serves the full Data API schema as the resource mountaya://data/schema.

How OAuth access works

The assistant acts with the one publishable key you chose, and never sees a secret key. It reads that key's organization only, private itineraries and drafts included. Every call counts toward that organization's Data API usage.

A connection pauses when you remove mcp from its key, and comes back when you restore it. It ends when you revoke or delete the key, or when the member who authorized it leaves the organization.

Limits

Calls count toward your organization's Data API limits: 60 requests a minute and 300,000 a month by default, unless your agreement sets other figures. See rate limits.

Troubleshooting

  • Tools stopped working. The key behind the connection was revoked or lost mcp, or you left its organization. Remove the connector, add the URL again, and pick a key that still works.
  • 429 with Retry-After: Mountaya limits how often your assistant's token is checked, and the connection still holds. Wait the seconds Retry-After names, then retry. Do not reconnect.
  • 503 with Retry-After: Mountaya could not check the token for a moment, so the request is answered 503 Service Unavailable with Retry-After, never 401 with invalid_token. Wait, then retry. Do not reconnect.
  • The consent screen says "Nothing to authorize". Your assistant did not ask for the mcp scope. Cancel, then connect it with a key pair.
  • A connector you added before the consent screen named its site. Its tokens are no longer accepted. Remove it and add the URL again, once.
  • A connector you did not mean to authorize. Revoke the key it uses, or remove the member who authorized it.

Next steps

Last updated