Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TIMEZONENoIANA timezoneAsia/Shanghai
HTTP_HOSTNoHTTP binding address0.0.0.0
HTTP_PORTNoHTTP port8080
MCP_DEBUGNoEnable debug loggingfalse
AMAP_API_KEYNoAMAP (Gaode) API key for geocoding
TESLA_CAR_IDNoDefault car ID1
MCP_TRANSPORTNoTransport mode: stdio or streamable-httpstreamable-http
TESLA_GAS_MPGNoICE vehicle MPG28
TESLA_GAS_PRICENoGas price per gallon3.50
QWEATHER_API_KEYNoQWeather API key
TESLA_CAR_PARAMSNoJSON object mapping car_id to {kwh, range_km}
USE_METRIC_UNITSNoUse metric unitstrue
QWEATHER_API_HOSTNoQWeather API host (e.g. xxxx.re.qweatherapi.com)
TESLAMATE_DB_HOSTYesPostgreSQL host
TESLAMATE_DB_NAMEYesDatabase name
TESLAMATE_DB_PASSYesDatabase password
TESLAMATE_DB_PORTNoPostgreSQL port5432
TESLAMATE_DB_USERYesDatabase user
TESLA_BATTERY_KWHNoBattery capacity in kWh (single car fallback)78.4
TESLA_AMAP_TIMEOUTNoAMAP request timeout (seconds)8
TESLA_LIMIT_DRIVESNoMax drives returned500
TESLA_LIMIT_CHARGINGNoMax charging records500
TESLA_BATTERY_RANGE_KMNoFull range in km (single car fallback)675
TESLA_QWEATHER_TIMEOUTNoQWeather request timeout (seconds)8
TESLA_LIMIT_TPMS_HISTORYNoMax TPMS history records60
TESLA_TPMS_MAX_THRESHOLDNoHigh tire pressure threshold (bar)3.5
TESLA_TPMS_MIN_THRESHOLDNoLow tire pressure threshold (bar)2.5
TESLA_WEATHER_SAMPLE_MAXNoMax trips for weather efficiency analysis60
TESLA_LIMIT_STATE_HISTORYNoMax state transitions500
TESLA_LIMIT_VAMPIRE_DRAINNoMax vampire drain events50
TESLA_ELECTRICITY_RATE_RMBNoElectricity rate in RMB per kWh0.6
TESLA_ELECTRICITY_RATE_USDNoElectricity rate in USD per kWh (fallback)0.12
TESLA_LIMIT_BATTERY_HEALTHNoMax battery health snapshots60
TESLA_LIMIT_BATTERY_SAMPLESNoFallback battery samples30
TESLA_LIMIT_TRIP_CATEGORIESNoMax trips for categories analysis500
TESLA_LIMIT_LOCATION_HISTORYNoMax location clusters50
TESLA_LIMIT_SOFTWARE_UPDATESNoMax software updates30
TESLA_LIMIT_CHARGING_BY_LOCATIONNoMax charging locations50

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/6547709/teslamate-mcp'

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