Skip to main content

OSM Edit MCP

MCP Badge PyPI CI Python License

Find places in OpenStreetMap, preview POI nodes and four-sided polygons, and review road edits from your local GPX surveys through an MCP-compatible assistant.

Alpha, review-first: nothing is edited automatically. Road changes need an authenticated OSM account, an exact preview and one final MCP-host confirmation. The safe profile also supports reviewed POI node creation with duplicate inspection and exact coordinate/tag readback. False matches can be resolved with evidence in review_node_create_duplicates; its new proposal revision still requires that final confirmation before upload. For a POI with known boundaries, reviewed four-sided polygons create a closed OSM way with tags on the area and can explicitly replace an isolated POI node in the same upload.

Version 0.6.0 lets you compare up to ten GPX selections in the read-only road inspection profile. Inspect distances between traces and keep track of the ones you exclude. GPX comparison guide

To map a bus route, compare nearby road segments in iD, replay the mapper's choice and find existing stops in travel order. The full profile can then preview and publish the direction as a route relation. Bus mapping guide · Dushanbe example

For POI edits, the server guides assistants to use specific, verifiable OSM tags instead of promotional or redundant descriptions. For example, juice availability can be recorded as drink:juice=yes; this does not encode fresh preparation or the fruit. cuisine=juice is appropriate when supported by the place's cuisine, not simply because juice is offered. Inspect and preserve existing values. See drink tags and description guidance.

Fastest start

You need Python 3.10+, uv, and an MCP client that supports local stdio servers. No repository clone, Docker, API key or Valhalla installation is needed for place search.

Add this server to your client's MCP configuration (merge it with any existing servers), then reconnect:

{
  "mcpServers": {
    "osm-edit": {
      "command": "uvx",
      "args": ["osm-edit-mcp"],
      "env": {
        "OSM_TOOL_PROFILE": "discovery"
      }
    }
  }
}

The client downloads the released package on first launch and starts it for you. This profile exposes only three read-only place-search tools and needs no OAuth. Searches use public OSM services and send the search area/query to them.

Try asking your assistant:

Find museums and parks within 1 km of Matenadaran in Yerevan. Show OSM links.

Clients with a configuration form: command uvx, argument osm-edit-mcp, environment OSM_TOOL_PROFILE=discovery. If the client cannot find uvx, use its absolute path. See client setup or Hermes setup.

You can also start the server from a terminal:

uvx osm-edit-mcp

It waits for an MCP client; it is not an interactive terminal app or website. The bare command uses the default full profile, unlike the discovery-only configuration above.

GPX and editing: what else needs setup?

Keep the same command and args; replace the server's env above with:

{
  "OSM_TOOL_PROFILE": "full",
  "OSM_USE_DEV_API": "true",
  "OSM_WRITE_PROFILE": "safe",
  "OSM_REQUIRE_HOST_CONFIRMATION": "true"
}

Reconnect, then call get_edit_capabilities to check the selected API and authentication status. This enables GPX tools and the review-first workflow on the development sandbox; it does not log you in or authorize an edit.

To make edits: register a development OSM OAuth app and authenticate it with the source checkout's oauth_auth.py --dev helper, following the authentication guide. Keep credentials in a private file, not in this JSON or chat. Once the guide's private file contains the profile/API settings, replace env with only OSM_EDIT_MCP_ENV_FILE pointing to that file; do not leave conflicting settings in both places. Preview the proposal, review it, and confirm its exact digest. Real-map edits need a separate production app/configuration, development acceptance first, and an MCP host that supports confirmation (elicitation).

What you want to do What to configure, and why
Inspect a GPX and preview a selected section No OAuth. Set OSM_TRACK_IMPORT_DIR to your private GPX folder, or supply inline GPX XML.
Compare GPX surveys with roads on the real map Choose the read-only road-inspection profile. It returns candidate geometry from production without OAuth. Road inspection setup
Find candidate roads while editing The full profile uses the configured editing API. The development sandbox has its own map and object IDs.
Preview a road-edit diff Set up OSM OAuth: the proposal is bound to your account and API target even before any write.
Apply an edit After an explicit publish request, call apply_osm_edit immediately. Its MCP elicitation is the single final digest confirmation; do not add another chat question.
Optionally match a track to a routing graph Run local Valhalla with regional routing tiles. Skip this if you do not need matching; nothing installs it automatically.

A selected-track preview is not an OSM edit proposal. Start with the working GPX example. Before editing, follow the OAuth and production guide. Never treat one GPS trace as ground truth.

Detailed guides

Full guide and examples · Nearby search · Optional Valhalla · Troubleshooting · Changelog

Contributing and license

Contributing · Security · MIT license. OSM edits must also follow community guidelines and source-licensing requirements.

Metadata

Release files for osm-edit-mcp 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for osm-edit-mcp 0.6.0
File Size Uploaded Provenance Actions
osm_edit_mcp-0.6.0.tar.gz 252.5 kB With provenance Details for osm_edit_mcp-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for osm-edit-mcp 0.6.0
File Interpreter ABI Platform Actions
osm_edit_mcp-0.6.0-py3-none-any.whl Python 3 none any Details for osm_edit_mcp-0.6.0-py3-none-any.whl

Total release size: 415.3 kB

Release files / osm_edit_mcp-0.6.0.tar.gz

Download URL osm_edit_mcp-0.6.0.tar.gz
Size 252.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d68ca1ac4de14bda791f085b5b01f6e4187f2d7a57291475d2529176031462b5
BLAKE2b-256 checksum
How to use checksums
49e97b7a3b3af4462eecd1ee3bf7ae136d204fd86e5f5f8d95261943e0004338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / osm_edit_mcp-0.6.0-py3-none-any.whl

Download URL osm_edit_mcp-0.6.0-py3-none-any.whl
Size 162.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
166ee9b761ba7265c42ee71c644140c76fe13ff342a2cf4ef03a2eaf4a232340
BLAKE2b-256 checksum
How to use checksums
cf265c12428d58e9c3ae14fde7e2f00b7892fa465e70899402f860d54a794a0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for osm-edit-mcp 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for osm_edit_mcp-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page