Skip to main content
Glama

wunder-user-mcp

An MCP server that exposes the Wunder Mobility v2 end-user (User) API as tools. It lets an MCP client (Claude, etc.) browse vehicles, inspect and operate rentals, and create rentals/reservations on behalf of a single signed-in end user.

Authentication is handled entirely from a refresh token you provide via env var — the server exchanges it for short-lived access tokens and refreshes them automatically, so tool callers never deal with tokens.

Tools

Tool

What it does

Underlying endpoint

get_vehicles

List available vehicles. With a latitude/longitude, annotates each vehicle with distance from the user and sorts ascending.

GET /vehicles

get_active_rental

Return the user's ongoing rental(s) (ACTIVE / RESERVATION).

GET /rentals

rental_command

Operate a rental: START, PARK, DRIVE, END, OPEN_TAILBOX, RENEW_RESERVATION, …

POST /rentals/{id}/operation

create_rental

Create a rental in RESERVATION or ACTIVE state from a vehicle_id or vehicle_code.

POST /rentals

Related MCP server: Smartcar MCP Server

Configuration

All configuration is via environment variables (see .env.example):

Variable

Required

Default

Purpose

WUNDER_REFRESH_TOKEN

Long-lived refresh token for the end user.

WUNDER_TENANT

Tenant short-code used in the API URL path.

WUNDER_BASE_URL

https://go.api.gourban.services/v1

API gateway base URL.

WUNDER_BRANCH_ID

Default branch id for vehicle/rental calls.

WUNDER_DEFAULT_RADIUS_MI

5

Radius (miles) used by get_vehicles when a location is given without a radius.

WUNDER_HTTP_TIMEOUT

30

Per-request timeout in seconds.

Getting a refresh token

Sign in once via the Wunder Authentication API (e.g. POST /{tenant}/auth/sign-in-email, /sign-in-phone-number, or /sign-in-api-client) and copy the refreshToken from the response into WUNDER_REFRESH_TOKEN.

Run

Run straight from the GitHub repo — no clone and no PyPI publish required (uvx builds from the Git source):

uvx --from git+https://github.com/slettmayer/wunder-user-mcp wunder-user-mcp

Pin a branch, tag, or commit for stability by appending @<ref>:

uvx --from git+https://github.com/slettmayer/wunder-user-mcp@main wunder-user-mcp

uvx caches the build, so to pick up new commits on a moving ref (e.g. @main) add --refresh:

uvx --refresh --from git+https://github.com/slettmayer/wunder-user-mcp@main wunder-user-mcp

From a local checkout (development):

uv run wunder-user-mcp        # editable install, reflects local edits
uvx --from . wunder-user-mcp  # build from the current directory

In all cases WUNDER_REFRESH_TOKEN and WUNDER_TENANT must be set in the environment (see Configuration). The server speaks MCP over stdio.

MCP client configuration

{
  "mcpServers": {
    "wunder-user": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/slettmayer/wunder-user-mcp",
        "wunder-user-mcp"
      ],
      "env": {
        "WUNDER_REFRESH_TOKEN": "<refresh-token>",
        "WUNDER_TENANT": "<tenant-code>",
        "WUNDER_BASE_URL": "https://go-staging.api.gourban.services/v1",
        "WUNDER_BRANCH_ID": "<optional-branch-id>"
      }
    }
  }
}

WUNDER_BASE_URL defaults to production (https://go.api.gourban.services/v1); the value above targets staging (go-staging). Set it to match your tenant's environment — a staging tenant on the production host returns 404. To pin a ref, append @<ref> to the URL, e.g. git+https://github.com/slettmayer/wunder-user-mcp@main.

Development

uv sync            # install deps (incl. dev group)
uv run pytest      # offline unit tests (geo + JWT exp parsing)
uv run ruff check  # lint

Notes / caveats

  • The vehicle position field path used for distance calculation is detected best-effort (lat/lng, latitude/longitude, or a nested position/location). If a tenant's response uses different field names, extend geo.py.

  • operation_type in rental_command is passed through to the API, so tenant-specific operations beyond the documented set keep working.

  • Rental creation and END are high-impact: they can trigger vehicle commands, payment authorization/capture, deposits, and invoices.

Available Tools

4 tools
create_rentalA

Create a rental for the signed-in user, as a reservation or an active rental.

Provide exactly one of vehicle_id (from the map/list) or vehicle_code (from a QR scan). start_rental_state is RESERVATION (hold the vehicle, default) or ACTIVE (start the trip immediately, begins billing).

Optional: additions (selected add-on codes, e.g. ["INSURANCE", "HELMET"]), user_group_code + rental_type="BUSINESS" for business-account billing.

Returns the created rental, including its id and state.

ParametersJSON Schema
NameRequiredDescriptionDefault
vehicle_idNo
vehicle_codeNo
start_rental_stateNoRESERVATION
additionsNo
user_group_codeNo
rental_typeNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears the full burden. It discloses that the tool creates a rental, the state determines billing start (ACTIVE begins billing immediately), and returns the rental with id and state. It does not mention authentication or rate limits, but the core behavior is clearly communicated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise: 4 sentences covering the main action, parameter constraints, optional fields, and return value. It is front-loaded with the core purpose, and every sentence adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 6 parameters, no annotations, and an output schema, the description covers the essential behavioral context: creation, state-based billing, and return fields (id, state). It lacks error handling or prerequisites beyond signed-in user, but the output schema reduces the need to detail return structure. Overall it is fairly complete for a creation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, so the description must compensate. It thoroughly explains all parameters: the mutual exclusivity of vehicle_id and vehicle_code, the meaning of start_rental_state, examples for additions (e.g., insurance, helmet), and the combination of user_group_code and rental_type='BUSINESS' for business billing. This adds significant meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with 'Create a rental for the signed-in user', which is a specific verb and resource. It distinguishes from siblings like get_active_rental (read-only) and get_vehicles (listing) by clearly stating it creates a rental, optionally as a reservation or active rental.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear parameter guidelines: 'Provide exactly one of vehicle_id or vehicle_code' and explains the start_rental_state options. It does not explicitly state when not to use the tool or compare with siblings, but the sibling names provide context. The guidance is sufficient for a typical use case.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_active_rentalA

Retrieve the signed-in user's currently ongoing rental(s).

Returns rentals in ACTIVE (trip in progress) or RESERVATION (held, not yet started) state. Usually 0 or 1. Use a returned rental's id with rental_command to operate it.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description fully discloses behavior: it returns rentals in specific states and indicates the expected count. It does not mention side effects or permissions, but for a read-only retrieval, this is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with two sentences: the first states the main purpose, the second adds important details about states and usage. No unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the output schema exists, the description does not need to detail return values. It covers what the tool retrieves, the states, typical count, and how to use the result with sibling tools. This is complete for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, so the baseline is 4. The description does not need to add parameter details, and it correctly focuses on the tool's output.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the resource ('rentals'), action ('retrieve'), and scope ('signed-in user's currently ongoing'). It distinguishes from siblings by specifying the states ('ACTIVE' or 'RESERVATION') and the usual count of 0 or 1.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use it (to check current rentals) and provides guidance on next steps ('use a returned rental's id with rental_command'). It does not explicitly state when not to use it, but the context of sibling tools makes the usage clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_vehiclesA

List available vehicles for the signed-in user.

When both latitude and longitude are supplied, the result is scoped to a radius around that point (radius_miles, defaulting to WUNDER_DEFAULT_RADIUS_MI), each vehicle is annotated with distanceKm/distanceMeters from the user, and the list is sorted by ascending distance. Without a location, vehicles are returned as provided by the API (no distance, no distance sort).

Filters: branch_id, category_ids, exclude_stationed_vehicles (true = free-floating only), min_state_of_charge/max_state_of_charge (battery percentage 0-100).

ParametersJSON Schema
NameRequiredDescriptionDefault
latitudeNo
longitudeNo
radius_milesNo
branch_idNo
category_idsNo
exclude_stationed_vehiclesNo
min_state_of_chargeNo
max_state_of_chargeNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It discloses the effect of supplying location (distance annotation, sorting) and the default radius constant, and describes filter behavior. It does not mention authentication or rate limits, but for a read-only list tool this is acceptable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured in two paragraphs, front-loading the core purpose. Every sentence adds value, with no redundancy. At around 150 words, it is concise and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 8 optional parameters, an output schema (so return values need not be detailed), and no required fields, the description fully covers behavior and all filters. It provides sufficient context for an agent to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema description coverage, the description thoroughly explains each parameter's purpose: location scoping with latitude/longitude, default radius via constant, branch_id, category_ids, exclude_stationed_vehicles meaning free-floating only, and min/max state_of_charge as battery percentage 0-100. This adds significant value beyond the schema titles.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear verb+resource statement 'List available vehicles for the signed-in user.' It further explains location-based and non-location behavior, and lists all filters, making its purpose highly specific and distinct from sibling tools like create_rental.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to include latitude/longitude for spatial filtering and default radius behavior, and explains each filter's effect. However, it does not explicitly state when not to use this tool or directly contrast with siblings, leaving a minor gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

rental_commandA

Execute an operation on a rental and return the updated rental.

operation_type (case-sensitive) is one of:

  • START start a reserved rental

  • PARK pause driving while keeping the rental active

  • DRIVE resume driving after a park

  • END end the rental (triggers final checks and billing)

  • OPEN_TAILBOX open a configured tailbox / helmet box / saddle compartment

  • RENEW_RESERVATION extend a reservation where supported Other operation types configured for the tenant are passed through as-is.

Optional fields are forwarded when relevant (mainly for END): file_id (e.g. a parking photo uploaded via POST /files), parking_report, vehicle_code, reason.

Note: ending may be blocked by end-checks (parking/station/photo/surcharge). This tool does not pre-run POST /rentals/{id}/check/end; an END that fails a requirement surfaces the API error.

ParametersJSON Schema
NameRequiredDescriptionDefault
rental_idYes
operation_typeYes
file_idNo
parking_reportNo
vehicle_codeNo
reasonNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that END may be blocked by checks and that optional fields are forwarded when relevant. However, it does not describe authentication needs, required roles, success/error response structure, or other behavioral traits like idempotency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: a summary sentence, a clear list of operation types, a note on optional fields, and a caution about end-checks. Every sentence adds value, though it could be slightly more concise without losing clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that an output schema exists, the description does not need to detail return values. It covers the core behavior, input parameters, and a notable constraint (end-checks). Some gaps exist (e.g., error handling, idempotency), but for a mutation tool with 6 parameters, it is fairly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description compensates by explaining each parameter: rental_id (required integer), operation_type (case-sensitive list), and optional fields (file_id, parking_report, vehicle_code, reason) with context on when they are relevant (primarily for END). This adds significant meaning beyond the raw JSON schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it executes an operation on a rental and returns the updated rental. It lists all specific operation types (START, PARK, etc.) and distinguishes itself from sibling tools like create_rental and get_active_rental, which handle different lifecycle stages.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit operation types and when to use each, along with context for optional fields (mainly for END). It also warns that END may be blocked by end-checks and that the tool does not pre-run the check/end endpoint. However, it does not explicitly state when NOT to use this tool versus alternatives, though the purpose inherently limits its use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 4 tool updatesv0.1.0
    • First observedcreate_rental
    • First observedget_active_rental
    • First observedget_vehicles
    • First observedrental_command

TDQS

A4.3/5.0
Disambiguation5/5

Each tool has a distinct purpose: creating a rental, retrieving active rentals, listing available vehicles, and executing commands on rentals. There is no overlap or ambiguity between them.

Naming Consistency4/5

Three of the four tools follow a clear verb_noun pattern (create_rental, get_active_rental, get_vehicles), while 'rental_command' deviates slightly as a noun_verb. The inconsistency is minor and the names remain readable.

Tool Count4/5

Four tools is a compact but reasonable set for a user-facing rental service. It covers the essential actions without being too few or too many, though a few more (e.g., cancel reservation) might be expected.

Completeness4/5

The tool surface covers the core workflows: vehicle discovery, rental creation, state monitoring, and lifecycle commands. A minor gap is the lack of an explicit cancel/reservation removal, but the domain is well-served overall.

Maintenance

ActivityStale
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    F
    maintenance
    MCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.
    5
    3
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that exposes Smartcar's vehicle API as tools, enabling AI agents to query vehicle telemetry and send commands using natural language.
    -
  • F
    license
    Not graded
    quality
    B
    maintenance
    MCP server enabling agents to interact with a human-in-the-loop B2B service in Vienna, supporting quote requests, task tracking, messages, and cancellation via bearer-token authenticated tools.
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/slettmayer/wunder-user-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server