OSM Edit MCP
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.
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. Compare the independently observed return journey, update an existing direction in place, or group reviewed directions into a bus route master. 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.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| osm_edit_mcp-0.7.0.tar.gz | 270.3 kB | With provenance | Details for osm_edit_mcp-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| osm_edit_mcp-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for osm_edit_mcp-0.7.0-py3-none-any.whl |
Total release size: 444.1 kB
Release files / osm_edit_mcp-0.7.0.tar.gz
| Download URL | osm_edit_mcp-0.7.0.tar.gz |
|---|---|
| Size | 270.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a6cb090b55463c80bf21941a8f5aab62cc15d8a6a884558c10f766e19630c55
|
|
BLAKE2b-256 checksum How to use checksums |
8645fcaac39ba124d08d102b91768ef321f1c2416d028eec23b005d6502dbfb3
|
| 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 logRelease files / osm_edit_mcp-0.7.0-py3-none-any.whl
| Download URL | osm_edit_mcp-0.7.0-py3-none-any.whl |
|---|---|
| Size | 173.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf7c125136a7f668c1c26573c7e55394c89da922e24a3f1094e7b1ce45568b9e
|
|
BLAKE2b-256 checksum How to use checksums |
272433c52a8859702bca3992a23e5f4d8efb348c93cc18690d06ba665f53215c
|
| 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 logSecurity for osm-edit-mcp 0.7.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.
Attestation for osm_edit_mcp-0.7.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 logA 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.