Skip to main content
Glama
thachdoSC

Smartcar MCP Server

by thachdoSC

Smartcar MCPサーバー

MCP (Model Context Protocol)サーバーであり、Smartcarの車両APIをAIエージェント用のツールとして公開します。Claude、ChatGPT、およびその他のMCP互換クライアントが、自然言語を使用して車両のテレメトリを照会し、コマンドを送信できるようにします。

概要

このサーバーは、OAuth2クライアント認証情報を使用してSmartcarのM2M(マシン間)APIをラップします。トークンの取得とキャッシュを自動的に処理するため、AIエージェントは認証を管理することなく車両とやり取りできます。

4つのカテゴリにわたる16のツール:

カテゴリ

ツール

接続

list_connections, get_connection, delete_connection, delete_user

信号(テレメトリ)

get_signals, get_signal

車両コマンド

lock_vehicle, unlock_vehicle, start_charge, stop_charge, set_charge_limit, set_navigation_destination

管理

list_applications, get_application, list_application_secrets

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_CLIENT_ID

はい

Smartcar M2MクライアントID

SMARTCAR_CLIENT_SECRET

はい

Smartcar M2Mクライアントシークレット

SMARTCAR_API_URL

いいえ

https://vehicle.api.smartcar.com/v3

車両APIベースURL

SMARTCAR_AUTH_URL

いいえ

https://iam.smartcar.com

認証トークンエンドポイント

SMARTCAR_MANAGEMENT_API_URL

いいえ

https://management.api.smartcar.com/v3

管理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 — オプションのフィルターを使用して車両接続を一覧表示します。

パラメータ

説明

userId

string?

ユーザーIDでフィルタリング

vehicleId

string?

車両IDでフィルタリング

vehicleMode

live

simulated?

車両モードでフィルタリング

pageNumber

number?

ページ番号

pageSize

number?

ページあたりの結果数

get_connection — IDで単一の接続を取得します。

delete_connection — IDで接続を削除します。

delete_user — ユーザーと関連するすべてのデータを削除します。


信号(テレメトリ)

get_signals — 車両で利用可能なすべての信号を一覧表示します。

パラメータ

説明

vehicle_id

string

車両ID

user_id

string

ユーザーID

pageNumber

number?

ページ番号

pageSize

number?

ページあたりの結果数

get_signal — 特定の信号の現在の値を取得します。

パラメータ

説明

vehicle_id

string

車両ID

user_id

string

ユーザーID

signal_code

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_iduser_id が必要です。

lock_vehicle — 車両のドアをロックします。

unlock_vehicle — 車両のドアをアンロックします。

start_charge — EV充電を開始します。

stop_charge — EV充電を停止します。

set_charge_limit — 最大充電レベルを設定します。

パラメータ

説明

percent

number

目標充電率 % (50–100)

set_navigation_destination — 車両のナビゲーションシステムにGPS目的地を送信します。

パラメータ

説明

latitude

number

緯度 (-90 ~ 90)

longitude

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秒前に自動的に更新されます。手動でのトークン管理は不要です。

F
license - not found
Not graded
quality - not tested
D
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

  • 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
  • A
    license
    B
    quality
    C
    maintenance
    An MCP server that enables AI assistants to interact with the VoIPbin CPaaS platform, exposing tools for managing calls, flows, messaging, conferencing, and more.
    52
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    An 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

View all related MCP servers

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.

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/thachdoSC/smartcar-mcp-test'

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