Smartcar MCP Server
Smartcar MCPサーバー
MCP (Model Context Protocol)サーバーであり、Smartcarの車両APIをAIエージェント用のツールとして公開します。Claude、ChatGPT、およびその他のMCP互換クライアントが、自然言語を使用して車両のテレメトリを照会し、コマンドを送信できるようにします。
概要
このサーバーは、OAuth2クライアント認証情報を使用してSmartcarのM2M(マシン間)APIをラップします。トークンの取得とキャッシュを自動的に処理するため、AIエージェントは認証を管理することなく車両とやり取りできます。
4つのカテゴリにわたる16のツール:
カテゴリ | ツール |
接続 |
|
信号(テレメトリ) |
|
車両コマンド |
|
管理 |
|
Related MCP server: agentforge
使用方法
インストールは不要です。これを claude_desktop_config.json(または同等のMCPクライアント設定)に追加してください:
{
"mcpServers": {
"smartcar": {
"command": "npx",
"args": ["-y", "smartcar-mcp"],
"env": {
"SMARTCAR_CLIENT_ID": "your-client-id",
"SMARTCAR_CLIENT_SECRET": "your-client-secret"
}
}
}
}環境変数
変数 | 必須 | デフォルト | 説明 |
| はい | — | Smartcar M2MクライアントID |
| はい | — | Smartcar M2Mクライアントシークレット |
| いいえ |
| 車両APIベースURL |
| いいえ |
| 認証トークンエンドポイント |
| いいえ |
| 管理APIベースURL |
開発
git clone https://github.com/thachdoSC/smartcar-mcp-test
cd smartcar-mcp
npm install
npm run dev # run from source
npm run build # compile to dist/ツールリファレンス
接続
list_connections — オプションのフィルターを使用して車両接続を一覧表示します。
パラメータ | 型 | 説明 | |
| string? | ユーザーIDでフィルタリング | |
| string? | 車両IDでフィルタリング | |
|
|
| 車両モードでフィルタリング |
| number? | ページ番号 | |
| number? | ページあたりの結果数 |
get_connection — IDで単一の接続を取得します。
delete_connection — IDで接続を削除します。
delete_user — ユーザーと関連するすべてのデータを削除します。
信号(テレメトリ)
get_signals — 車両で利用可能なすべての信号を一覧表示します。
パラメータ | 型 | 説明 |
| string | 車両ID |
| string | ユーザーID |
| number? | ページ番号 |
| number? | ページあたりの結果数 |
get_signal — 特定の信号の現在の値を取得します。
パラメータ | 型 | 説明 |
| string | 車両ID |
| string | ユーザーID |
| string | 信号コード(下記参照) |
充電: charge.ischarging, charge.voltage, charge.wattage, charge.amperage, charge.limit, charge.estimation.durationtocompletion, charge.estimation.distance_added, charge.estimation.kwh_added, charge.estimation.percent_added, charge.session.id, charge.session.starttime, charge.session.endtime, charge.session.kwhadded, charge.session.milesadded, charge.session.porttype, charge.session.cost, charge.schedule.type, charge.schedule.starttime, charge.schedule.day, charge.schedule.enabled, charge.porttype, charge.portstatus
空調: climate.externaltemperature, climate.internaltemperature
開閉部: closure.door, closure.lock, closure.window, closure.sunroof, closure.fronttrunk, closure.reartrunk, closure.chargeport
接続性: connectivity.firmware, connectivity.isonline, connectivity.sleepstate, connectivity.lastseenat
診断: diagnostics.faultcodes, diagnostics.oil, diagnostics.emissions, diagnostics.abs, diagnostics.airbag, diagnostics.battery.maintenancestatus, diagnostics.battery.range, diagnostics.battery.soc, diagnostics.brakebooster, diagnostics.brakefluid, diagnostics.collision, diagnostics.coolant, diagnostics.cruisecontrol, diagnostics.enginelight, diagnostics.hazardlights, diagnostics.headlights, diagnostics.park, diagnostics.stabilitycontrol, diagnostics.steeringlock, diagnostics.transmission, diagnostics.washerfluid
HVAC: hvac.cabintemperature, hvac.defroster, hvac.heater, hvac.temperatureset, hvac.ventilation
ICE(内燃機関): ice.fuel.level, ice.fuel.range, ice.fuel.percentremaining, ice.oillife
位置情報: location.precise, location.ishome
低電圧バッテリー: lowvoltagebattery.stateofcharge, lowvoltagebattery.status
動作: motion.speed
オドメーター: odometer.distance
サービス: service.isinservice, service.records
監視: surveillance.brand, surveillance.isenabled
トラクションバッテリー: tractionbattery.stateofcharge, tractionbattery.range, tractionbattery.heating, tractionbattery.capacity.kwh, tractionbattery.capacity.usableKwh, tractionbattery.limit, tractionbattery.temperature, tractionbattery.chargecompletiontime, tractionbattery.fullchargetime
トランスミッション: transmission.drivemode, transmission.gear
車両ID: vehicleid.vin, vehicleid.color, vehicleid.trim, vehicleid.packages, vehicleid.nickname
車両ユーザーアカウント: vehicleuseraccount.grantedpermissions, vehicleuseraccount.role
ホイール: wheel.style, wheel.tires
車両コマンド
すべてのコマンドツールには vehicle_id と user_id が必要です。
lock_vehicle — 車両のドアをロックします。
unlock_vehicle — 車両のドアをアンロックします。
start_charge — EV充電を開始します。
stop_charge — EV充電を停止します。
set_charge_limit — 最大充電レベルを設定します。
パラメータ | 型 | 説明 |
| number | 目標充電率 % (50–100) |
set_navigation_destination — 車両のナビゲーションシステムにGPS目的地を送信します。
パラメータ | 型 | 説明 |
| number | 緯度 (-90 ~ 90) |
| number | 経度 (-180 ~ 180) |
管理
list_applications — 組織内のすべてのSmartcarアプリケーションを一覧表示します。
get_application — IDで特定のアプリケーションの詳細を取得します。
list_application_secrets — アプリケーションの認証情報を一覧表示します(シークレット値は返されません)。
プロジェクト構造
src/
├── index.ts # Server entry point — wires up tools and transport
├── auth.ts # OAuth2 token manager with in-memory caching
├── client.ts # HTTP client for Smartcar REST APIs
└── tools/
├── connections.ts # Connection and user management tools
├── signals.ts # Vehicle telemetry tools
├── commands.ts # Vehicle control command tools
└── management.ts # Application management tools認証
サーバーはOAuth2クライアント認証情報(M2Mフロー)を使用します。トークンはメモリにキャッシュされ、有効期限の60秒前に自動的に更新されます。手動でのトークン管理は不要です。
This server cannot be installed
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
- FlicenseNot gradedqualityDmaintenanceAn MCP server that connects Bouncie OBD2 vehicle tracking data to AI assistants. It enables users to retrieve real-time vehicle stats, health diagnostics, and detailed trip history through the Bouncie API.
- FlicenseAqualityFmaintenanceMCP 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.53

VoIPbin MCP Serverofficial
AlicenseBqualityCmaintenanceAn MCP server that enables AI assistants to interact with the VoIPbin CPaaS platform, exposing tools for managing calls, flows, messaging, conferencing, and more.521MIT- AlicenseNot gradedqualityBmaintenanceAn MCP (Model Context Protocol) server that exposes Polestar 2 vehicle data to AI assistants like Claude. Query your car's battery status, vehicle info, and health data through natural conversation.MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
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/thachdoSC/smartcar-mcp-test'
If you have feedback or need assistance with the MCP directory API, please join our Discord server