The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Openchargemap MCP Server listing page.
Find EV charging stations worldwide by location and connector via the global Open Charge Map registry — full station detail, reference-ID resolution, and community reliability check-ins via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://openchargemap.caseyjhand.com/mcp
Four tools across the find-and-detail surface — search, detail, offline ID resolution, and the community reliability layer:
| Tool | Description |
|---|---|
openchargemap_find_stations | Find charging stations near a point or within a bounding box, filtered by connector, power, network, usage, status, and charge points. Coordinate-native. |
openchargemap_get_station | Full record for one station by numeric OCM ID — every connection, operator, access rules, charge points, cost, media, and a computed reliability note. |
openchargemap_lookup_reference | Resolve connector/operator/usage/status/country names to the integer filter IDs find_stations needs. Served from a bundled snapshot — offline and instant. |
openchargemap_get_station_comments | Community check-ins for one station alongside the registry status and last-verified date, so registry-vs-reality mismatch is visible. |
openchargemap_find_stationsThe workhorse. Search the global registry by location, then narrow with filters.
latitude + longitude + distance, in KM or Miles) or boundingbox — exactly one mode per call. A boundingbox sent alongside a latitude or a longitude is rejected rather than searched with the coordinate quietly droppedcountrycode; global by default, no implicit countryopenchargemap_lookup_reference first (e.g. "CCS" → 33)dateLastVerifiedmaxresults caps the page (default 25, max 200), ordered by distance. A truncated page reports nextOffset; pass it back as offset for the next page. OCM has no offset parameter of its own, so paging runs over an over-fetched candidate page — reachable depth is 500 stations per search (offset 0–499), and totalCount is what the search retrieved rather than a registry-wide total (OCM publishes none). It is exact only when the candidate page came back short of its cap; otherwise it is a floor, and the notice says sominchargepoints, and the drop of OCM's 0,0 coordinate sentinels) run over that whole candidate page, so a match ranked past maxresults is not lost and a page emptied by filtering is reported as truncated, not as "no stations"openstreetmap MCP server's openstreetmap_geocode) first, then pass them hereopenchargemap_get_stationFull detail for one station by its numeric OCM ID (fetched with verbose=true).
includeCommentsreliabilityNote from observable facts (verification age, registry status, operational flag, fault-vs-positive check-in counts) — no synthetic score; omitted when status is fresh and uncontestedopenchargemap_find_stations. UUID lookup is not supported by the OCM API.openchargemap_lookup_referenceResolve Open Charge Map reference data to the integer IDs the find_stations filters require — served from a bundled snapshot, so it makes no network call (offline, instant).
connectiontypes, operators, usagetypes, statustypes, currenttypes, levels, countriesquery to resolve a name, title, code, or alias ("CCS", "Tesla Supercharger", "ChargePoint", "Public - Pay At Location", "France", "FR") — case-insensitive, matched on title, formal name, and curated connector aliasesquery to browse the whole category (up to limit, max 100). Browsing and querying both page: totalCount is the full match count, and a truncated page reports nextOffset to pass back as offset — every entry in a large category like operators (974) or countries (250) is reachableid(s) plus the filterParam they feed and the vintage of the data actually served — snapshotDate with a source of live or bundled, so a fresh fetch is never mistaken for a freshly cut bundleOPENCHARGEMAP_REFERENCE_REFRESH below. When it succeeds, source is live and snapshotDate is the day it ran; when it is off or it failed, source is bundled and the date is the bundle's ownopenchargemap_get_station_commentsCommunity check-ins for one station — the honest reliability signal beyond the operator-reported registry flag.
maxresults caps the page, max 100)totalCount is exact and offset (paired with the nextOffset a truncated page reports) reads the rest without a further upstream calltotalComments is the station's whole set, the rendered header reads 2 of 6 comment(s) when a page is only part of it, and reliabilityNote's fault ratio is counted over the whole set so it does not move with maxresultsdateLastVerified alongside the comments so you can flag mismatches like "listed operational, but recent check-ins report a fault"comments: []; absence of reports is not evidence the charger worksincludecomments=true (OCM has no standalone comments endpoint)openchargemap_find_stations| Type | Name | Description |
|---|---|---|
| Resource | openchargemap://station/{id} | Full station record (with community comments) by numeric OCM ID — the URI-addressable twin of openchargemap_get_station. |
All station data is also reachable via the tools. The station corpus (~200k locations, geo-scoped) is not exposed as a listable resource — discover stations with openchargemap_find_stations. Reference data is a resolve surface, not a stable-by-URI record, so it is served by openchargemap_lookup_reference rather than a resource.
Built on @cyanheads/mcp-ts-core:
none, jwt, oauthin-memory, filesystem, Supabase, Cloudflare KV/R2/D1Open Charge Map–specific:
/referencedata call, with an optional startup refresh to prevent driftCCS, NACS/Supercharger, J1772, Type 2, CHAdeMO) so the names agents actually use resolve to the right IDsAgent-friendly output:
status, statusTypeId, isOperational, and dateLastVerified on every station, plus a plain-prose reliabilityNote derived only from observable facts (no fabricated confidence score). Upstream values are passed through verbatim; where a status contradicts its own operational flag, the judgment lives in the note and the rendered text, never in the booleanfalse is a fact and reaches the text output, not just structuredContentA public instance is available at https://openchargemap.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP, with this client config:
Add the following to your MCP client configuration file. An Open Charge Map API key is required — see Prerequisites.
Or with npx (no Bun required):
Or with Docker:
For Streamable HTTP, set the transport and start the server:
X-API-Key header on every request; the server fails fast at startup if it's unset.All configuration is validated at startup via Zod schemas in src/config/server-config.ts. Key environment variables:
| Variable | Description | Default |
|---|---|---|
OPENCHARGEMAP_API_KEY | Required. Open Charge Map API key, sent as the X-API-Key header. Free signup at openchargemap.org. | — |
OPENCHARGEMAP_BASE_URL | OCM API base URL. Override for a private mirror or testing. | https://api.openchargemap.io/v3 |
OPENCHARGEMAP_REFERENCE_REFRESH | When true, refresh reference data from the live /referencedata endpoint at startup, falling back to the bundled snapshot on failure. When false, stay fully offline on the bundled snapshot. | false |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for the HTTP server. | 3010 |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
LOGS_DIR | Directory for log files (Node.js only). | <project-root>/logs |
STORAGE_PROVIDER_TYPE | Storage backend. | in-memory |
OTEL_ENABLED | Enable OpenTelemetry instrumentation (spans, metrics, completion logs). | false |
See .env.example for the full list of optional overrides.
Build and run:
Run checks and tests:
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/openchargemap-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools/resources and inits services. |
src/config | Server-specific environment variable parsing and validation with Zod. |
src/data | Bundled Open Charge Map reference snapshot (ocm-reference-data.ts) — the offline source for ID resolution. |
src/mcp-server/tools | Tool definitions (*.tool.ts) plus the shared station schema and renderers. |
src/mcp-server/resources | Resource definitions (*.resource.ts). |
src/services/openchargemap | OCM POI API client, response normalization, attribution, and the reliability-note helper. |
src/services/reference-data | Reference-data service — snapshot loading, lookup indices, curated aliases, optional live refresh. |
tests/ | Unit and integration tests mirroring src/. |
See AGENTS.md (and CLAUDE.md) for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for request-scoped logging, ctx.state for tenant-scoped storagecreateApp() arraysCharging-station, connector, and operator data is sourced from Open Charge Map, the community-maintained global registry of EV charging locations, and is licensed under CC BY 4.0.
Station data © Open Charge Map contributors, licensed under CC BY 4.0 (openchargemap.org).
Attribution is mandatory: every tool response carries this attribution string, and the server restates it in its session-level instructions. Any downstream use of the data must credit Open Charge Map and its contributors. This server's own code is Apache-2.0 (below); the license terms above apply to the data, not the software.
Issues and pull requests are welcome. Run checks and tests before submitting:
Apache-2.0 — see LICENSE for details. Open Charge Map data carries its own license; see Attribution and data license.