Skip to main content
Glama
mzorz

bikerouter-mcp

by mzorz

bikerouter-mcp

bikerouter.de を使って自転車ルートを計画するMCPサーバーです。これはNorbert RennerによるBRouter-Webフロントエンドで、BRouterエンジン(作者:Arndt Brenschede)の上でOpenStreetMapデータをルーティングしています。

任意のMCPクライアント(Claude Code、Claude Desktop、など)から利用でき、*「ライン川沿いのケルンからボンまでのグラベルルートを計画してGPXをください」*のようなリクエストができます。

できること

ツール

目的

plan_route

2つ以上のウェイポイント(座標または地名)を通るルートを計画し、距離・上り/下り・推定走行時間・路面と道路種別の内訳・ターン案内・共有可能なbikerouter.deリンク、(任意で)保存したGPX/GeoJSON/KML/CSVファイルを返します。

compare_profiles

同じウェイポイントを複数のプロファイル(例:trekkinggravelfastbike)でルーティングし、距離・時間・獲得標高・舗装率を並べて比較します。

geocode_place

場所名・住所・POIを座標に変換します(Photon(bikerouter.deが使用するジオコーダー)経由)。

list_profiles

既知のルーティングプロファイルを一覧表示し、オプションで対応するルーティングホストが実際に提供しているプロファイルを検証します。

get_profile_options

プロファイルの.brfソースを読み込み、公開されているパラメータ(avoid_unsafeallow_ferriestotalMassbikerPower、など)をplan_routeprofile_optionsと一緒に使用するために一覧表示します。

plan_route出力のサンプル:

**Route** (profile: `trekking`)
Alexanderplatz, Berlin → Brandenburger Tor, Berlin

- Distance: **5.2 km**
- Estimated riding time: **20 min** (⌀ 15.6 km/h, from the profile's physics model)
- Ascent: **80 m** / descent: **60 m**
- Elevation: 35–55 m (start 35 m, end 55 m)

- Surfaces: asphalt 76.9% (4 km), gravel 23.1% (1.2 km)
- Way types: cycleway 38.5% (2 km), residential 38.5% (2 km), track 23.1% (1.2 km)

Open in bikerouter.de: https://bikerouter.de/#map=14/52.518154/13.396327/standard&lonlats=…&profile=trekking

Related MCP server: Hiking MCP Server

インストール

cd bikerouter-mcp
npm install     # also builds via the prepare script
npm test

Claude Codeに登録:

claude mcp add bikerouter -- node /absolute/path/to/bikerouter-mcp/dist/index.js

またはclaude_desktop_config.json / その他のMCPクライアントに追加:

{
  "mcpServers": {
    "bikerouter": {
      "command": "node",
      "args": ["/absolute/path/to/bikerouter-mcp/dist/index.js"]
    }
  }
}

APIキーは不要です — このサービスは無料で認証なしで提供されています。

設定

すべてオプションで、環境変数として設定できます:

変数

デフォルト

意味

BIKEROUTER_HOST

https://brouter.de

BRouterの/brouterルーティングエンドポイントを提供するホスト。bikerouter.deはWebフロントエンドのみでここでは404になるため、デフォルトはbrouter.deです。独自のBRouterサーバーを使用するにはhttp://localhost:17777を指定してください。

BIKEROUTER_WEB_URL

https://bikerouter.de

共有可能な地図リンクに使用するWeb UI。

BIKEROUTER_PROFILES_URL

<host>/brouter/profiles2/、その後<host>/profiles/、その後<web>/profiles/

.brfプロファイルソースがある場所(get_profile_optionsで使用)。

BIKEROUTER_GEOCODER_URL

https://photon.komoot.io/api

Photon互換のジオコーダ。

BIKEROUTER_DEFAULT_PROFILE

trekking

呼び出し側がプロファイルを指定しない場合に使用されるプロファイル。

BIKEROUTER_TIMEOUT_MS

60000

HTTPタイムアウト。長いルートでは時間がかかることがあります。

BIKEROUTER_USER_AGENT

bikerouter-mcp/0.1.0

すべてのリクエストに送信されます。

BRouter APIへのマッピング

リクエストは、BRouterのServerHandler.javaに記載されている通り、通常のGET /brouter呼び出しです:

/brouter?lonlats=lon,lat|lon,lat&nogos=lon,lat,radius,weight|…&profile=trekking
        &alternativeidx=0&format=geojson&timode=1&straight=0&profile:avoid_unsafe=true
  • waypointslonlats(場所名は最初にジオコーディングされ、前のウェイポイントに引き寄せられます)

  • avoid_areasnogos(ハード・ノーゴーの場合はweightを省略)

  • straight_fromstraight(直線レッグ)

  • profile_optionsprofile:NAME=VALUE

  • alternative_indexalternativeidx(代替ルートにはを1〜3)

  • turn_instructionstimode(GeoJSONレスポンス内の音声ヒント)

GeoJSONレスポンスは局所的に要約されます: トラックの長さ、filtered ascendtotal-timetotal-energyはトラックのプロパティから得られ、下りはフィルターされた登りと正味の高度変化から導出され、サーフェス/ウェイタイプ/路面の粗さの内訳はmessagesテーブルから集計されます(WayTagsDistanceで重み付け)。

知っておくべき制限

  • ルーティングの品質はOpenStreetMapの品質です。 路面やアクセスタグが欠落していると、予期しない迂回が発生します。必ず返された地図リンクでルートを確認してから走行してください。

  • **BRouterには道路名がありません。**そのため、"1.2 km先を右折"のように道路名を含まない案内になります。これはこのサーバーの問題ではなく、エンジン自体の性質です。

  • 推定走行時間はプロファイルの物理モデル(ライダーの質量・パワー・抗力)から計算されます。現実的な値にするには、profile_optionstotalMassbikerPowermaxSpeedを上書きしてください。

  • 標高はSRTMカバレッジが必要です。北緯約60度以上では、標高なしでトラックが返され、要約にもその旨が記載されます。

  • 公開サービスは無料のコミュニティ運営インスタンスです — リクエスト量を控えめにするか、独自のBRouterサーバーを実行してBIKEROUTER_HOSTを設定してください。

  • プロファイルはサーバーごとに異なります。list_profilesは標準のBRouter/BRouter-Webプロファイルのトラックカタログを提供しますが、特定ホストが実際に提供するプロファイルを確認するにはverify: trueを渡してください。

テスト

npm testはサーバーをビルドしてnode --testを実行します:

  • URL構築、ウェイポイント検証、.brfパラメータ解析、GeoJSONサマリサイザーのユニットテスト

  • 疑似BRouterホストに対する実サーバーバイナリへのstdioを経由したMCP通信のエンドツーエンドテスト。ルーティング、GPXエクスポート、プロファイル一覧、BRouterのプレーンテキストエラーレスポンスを適用範囲です

テストは公開サービスに接続しないため、オフラインで実行されます。

ライセンスと謝辞

サーバーコード: MIT。ルートはBRouter(MIT)が実行し、BRouter-Web / bikerouter.deを介して提供されます。地図データは©OpenStreetMap contributors(ODbL)です。

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Routing, isochrones, matrix, snap, elevation, geocode via Openrouteservice.

  • Basque Country hyperlocal mobility: ES/EU semantic search, routing, open-data POIs, peak-bagging.

  • Geoapify MCP — wraps the Geoapify Location Platform (geoapify.com)

View all MCP Connectors

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/mzorz/bikerouter-mcp'

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