ViaFrei API

ViaFrei API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-28); not the provider's own document.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

GET /mcp MCP server over Streamable HTTP, open data from Germany #
POST /mcp POST /mcp #
POST /offers/{offerid} POST /offers/{offerId} #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/viafrei-de:viafrei-de-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

viafrei-de-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: ViaFrei API
  version: '2026-11-28'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-28: 3 operation(s) read from 18 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; ViaFrei has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 2
    documentation: 1
    pages-with-code: 18
    pages-read: 18
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-28'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://viafrei.de/de/developers
  - https://viafrei.de/en/developers
  - https://viafrei.de/bg/developers?setlang=1
  - https://viafrei.de/cs/developers?setlang=1
  - https://viafrei.de/da/developers?setlang=1
  - https://viafrei.de/de/developers?setlang=1
  - https://viafrei.de/el/developers?setlang=1
  - https://viafrei.de/en/developers?setlang=1
  - https://viafrei.de/es/developers?setlang=1
  - https://viafrei.de/fr/developers?setlang=1
  - https://viafrei.de/hr/developers?setlang=1
  - https://viafrei.de/hu/developers?setlang=1
  - https://viafrei.de/it/developers?setlang=1
  - https://viafrei.de/lt/developers?setlang=1
  - https://viafrei.de/lv/developers?setlang=1
  - https://viafrei.de/nl/developers?setlang=1
  - https://viafrei.de/pl/developers?setlang=1
  - https://viafrei.de/pt/developers?setlang=1
servers:
- url: https://mcp.viafrei.de
paths:
  /mcp:
    get:
      operationId: get_mcp
      tags:
      - Mcp
      summary: MCP server over Streamable HTTP, open data from Germany
      description: The page provides the public MCP endpoint URL https://mcp.viafrei.de/mcp for connecting to ViaFrei's MCP server.
      x-source: https://viafrei.de/en/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_mcp
      tags:
      - Mcp
      summary: POST /mcp
      x-source: https://viafrei.de/de/developers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostMcpRequest'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostMcpResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl E=https://mcp.viafrei.de/mcp

          SID=$(curl -sS -X POST "$E" -H ''Content-Type: application/json'' -H ''Accept: application/json, text/event-stream'' -D - -o /dev/null  -d
          ''{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}''  |
          awk -F'': '' ''tolower($1)=="mcp-session-id"{print $2}'' | tr -d ''\r'')'
  /offers/{offerid}:
    post:
      operationId: post_offers_offerid
      tags:
      - Offers
      summary: POST /offers/{offerId}
      x-source: https://viafrei.de/de/developers
      parameters:
      - name: offerid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostOffersOfferidResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -sS -X POST \"$E\" -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -H \"Mcp-Session-Id:\
          \ $SID\"  -d '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"find_charging_station\",\"arguments\":{\"\
          place\":\"Leipzig\",\"min_power_kw\":150,\"language\":\"de\"}}}' Copy as curl Response Answered at 28 November 2026 at 07:37 {\n \"\
          jsonrpc\": \"2.0\",\n \"id\": 2,\n \"result\": {\n "
components:
  schemas:
    PostMcpRequest:
      type: object
      properties:
        jsonrpc:
          type: string
        id:
          type: integer
        method:
          type: string
        params:
          type: object
          properties:
            protocolVersion:
              type: string
              format: date
            capabilities:
              type: object
            clientInfo:
              type: object
              properties:
                name:
                  type: string
                version:
                  type: string
    PostMcpResponse:
      type: object
      properties:
        type:
          type: string
        text:
          type: string
    PostOffersOfferidResponse:
      type: object
      properties:
        type:
          type: string
        text:
          type: string
tags:
- name: Mcp
- name: Offers