bikerouter-mcp
bikerouter-mcp
bikerouter.de を使って自転車ルートを計画するMCPサーバーです。これはNorbert RennerによるBRouter-Webフロントエンドで、BRouterエンジン(作者:Arndt Brenschede)の上でOpenStreetMapデータをルーティングしています。
任意のMCPクライアント(Claude Code、Claude Desktop、など)から利用でき、*「ライン川沿いのケルンからボンまでのグラベルルートを計画してGPXをください」*のようなリクエストができます。
できること
ツール | 目的 |
| 2つ以上のウェイポイント(座標または地名)を通るルートを計画し、距離・上り/下り・推定走行時間・路面と道路種別の内訳・ターン案内・共有可能なbikerouter.deリンク、(任意で)保存したGPX/GeoJSON/KML/CSVファイルを返します。 |
| 同じウェイポイントを複数のプロファイル(例: |
| 場所名・住所・POIを座標に変換します(Photon(bikerouter.deが使用するジオコーダー)経由)。 |
| 既知のルーティングプロファイルを一覧表示し、オプションで対応するルーティングホストが実際に提供しているプロファイルを検証します。 |
| プロファイルの |
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=trekkingRelated MCP server: Hiking MCP Server
インストール
cd bikerouter-mcp
npm install # also builds via the prepare script
npm testClaude 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キーは不要です — このサービスは無料で認証なしで提供されています。
設定
すべてオプションで、環境変数として設定できます:
変数 | デフォルト | 意味 |
|
| BRouterの |
|
| 共有可能な地図リンクに使用するWeb UI。 |
|
|
|
|
| Photon互換のジオコーダ。 |
|
| 呼び出し側がプロファイルを指定しない場合に使用されるプロファイル。 |
|
| HTTPタイムアウト。長いルートでは時間がかかることがあります。 |
|
| すべてのリクエストに送信されます。 |
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=truewaypoints→lonlats(場所名は最初にジオコーディングされ、前のウェイポイントに引き寄せられます)avoid_areas→nogos(ハード・ノーゴーの場合はweightを省略)straight_from→straight(直線レッグ)profile_options→profile:NAME=VALUEalternative_index→alternativeidx(代替ルートにはを1〜3)turn_instructions→timode(GeoJSONレスポンス内の音声ヒント)
GeoJSONレスポンスは局所的に要約されます: トラックの長さ、filtered ascend、total-time、total-energyはトラックのプロパティから得られ、下りはフィルターされた登りと正味の高度変化から導出され、サーフェス/ウェイタイプ/路面の粗さの内訳はmessagesテーブルから集計されます(WayTagsをDistanceで重み付け)。
知っておくべき制限
ルーティングの品質はOpenStreetMapの品質です。 路面やアクセスタグが欠落していると、予期しない迂回が発生します。必ず返された地図リンクでルートを確認してから走行してください。
**BRouterには道路名がありません。**そのため、"1.2 km先を右折"のように道路名を含まない案内になります。これはこのサーバーの問題ではなく、エンジン自体の性質です。
推定走行時間はプロファイルの物理モデル(ライダーの質量・パワー・抗力)から計算されます。現実的な値にするには、
profile_optionsでtotalMass、bikerPower、maxSpeedを上書きしてください。標高は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)です。
Maintenance
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
- AlicenseNot gradedqualityDmaintenanceAn AI-powered companion that provides access to the RideWithGPS API, allowing you to interact with cycling routes, trips, events, and user data through natural language.6MIT
- FlicenseAqualityDmaintenanceAllows you to search for hiking routes on Wikiloc using geographic and textual queries.14
- FlicenseBqualityCmaintenanceEnables users to interact with Komoot for managing tours, planning routes, exporting GPX/FIT, and accessing highlights and user profile.18
- AlicenseAqualityCmaintenanceMCP server for planning routes (hiking, biking, driving, etc.) using the OpenRouteService API. Provides tools to find coordinates, create routes with GPX/PNG/HTML output, search POIs, and compute reachable areas.62MIT
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)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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