osm-mcp-project-structure

osm-mcp-project-structure is a cursor rule for Cursor from skywinder/osm-edit-mcp. It costs 669 tokens per session, scanned A, original, MIT.

A project-structure guide for an OSM Edit MCP server, an MCP service for reading and changing OpenStreetMap data.

In plain words
What is it for?
Use it when working on the server's Python code, configuration, 31 map-operation tools, or comprehensive test and documentation files.
Why use it?
It explains where the server, configuration, dependencies, tests, and documentation live, making the project easier to navigate safely.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when working on the server's Python code, configuration, 31 map-operation tools, or comprehensive test and documentation files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/skywinder/osm-edit-mcp/osm-mcp-project-structure
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/skywinder/osm-edit-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for osm-mcp-project-structure

README.md
[![agentmods](https://agentmods.dev/badge/rules/skywinder/osm-edit-mcp/osm-mcp-project-structure/github.svg)](https://agentmods.dev/rules/skywinder/osm-edit-mcp/osm-mcp-project-structure)
Your own site
<a href="https://agentmods.dev/rules/skywinder/osm-edit-mcp/osm-mcp-project-structure"><img src="https://agentmods.dev/badge/rules/skywinder/osm-edit-mcp/osm-mcp-project-structure/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for osm-mcp-project-structure

Your own site · 80×15
<a href="https://agentmods.dev/rules/skywinder/osm-edit-mcp/osm-mcp-project-structure"><img src="https://agentmods.dev/badge/rules/skywinder/osm-edit-mcp/osm-mcp-project-structure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 669 This file is loaded in full into every session.
When invoked 669 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00669 $0.00669
Opus 5 $0.00334 $0.00334
Sonnet 5 $0.00134 $0.00134
Haiku 4.5 $0.00067 $0.00067

Measured 3d ago against content hash bac55bd8b956, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

osm-mcp-project-structure scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/osm-mcp-project-structure.mdc · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OSM Edit MCP Server - Project Structure Guide

Core Project Files

Main Server Implementation

Configuration Files

  • .env - Environment configuration (never commit with real credentials)
  • .env.example - Configuration template with all available options
  • pyproject.toml - Python package configuration and dependencies

Testing Framework

Documentation

Architecture Overview

Server Structure

The server.py contains:

  • OSMConfig class with comprehensive configuration management
  • 31 MCP tools organized in categories:
    • Read Operations: get_osm_node, get_osm_way, get_osm_relation, etc.
    • Write Operations: create_osm_node, update_osm_node, delete_osm_node, etc.
    • Search Operations: find_nearby_amenities, search_osm_elements, etc.
    • Natural Language: parse_natural_language_osm_request, create_place_from_description, etc.
    • Utility Operations: validate_coordinates, validate_osm_data, etc.

Configuration System

Uses Pydantic BaseSettings for type-safe configuration with:

  • Dev/prod API switching via OSM_USE_DEV_API
  • Configurable logging levels
  • Safety and rate limiting settings
  • OAuth credentials management

Testing Architecture

  • Automated Testing: test_comprehensive.py runs all tools systematically
  • Manual Testing: TESTING_CHECKLIST.md provides step-by-step validation
  • Results Analysis: Generated reports help identify and debug issues

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +3 tokens per session bac55bd8b956
  2. 8d ago First seen · 58 lines · 666 tokens per session scan A c5ccfbef2d9a

Subscribe to this mod's changes

osm-mcp-project-structure is a cursor rule published in the GitHub repository skywinder/osm-edit-mcp (4 stars, last pushed yesterday), licensed MIT. It adds 669 tokens to every session, about $0.0033 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.