Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Server PROJ

FreeNot checked

A Model Context Protocol server for coordinate system transformations and map projections, supporting EPSG codes, WKT, and Proj formats.

GitHubEmbed

About

A Model Context Protocol server for coordinate system transformations and map projections, supporting EPSG codes, WKT, and Proj formats.

README

A Model Context Protocol (MCP) server for coordinate system transformations and map projections.

Features

  • Multiple coordinate system format support:
    • EPSG codes
    • WKT (Well-Known Text)
    • Proj string format
  • Batch coordinate transformation
  • Simple and intuitive API
  • Dual-mode operation: server or library

Installation

pip install mcp-server-proj

Usage

Server Mode

mcp-server-proj

Library Mode

from mcp_server_proj import CoordinateTransformer

# Create transformer instance
transformer = CoordinateTransformer()

# Set source and target coordinate systems
transformer.set_source_crs("EPSG:4326")  # WGS84
transformer.set_target_crs("EPSG:3857")  # Web Mercator

# Initialize transformer
transformer.initialize_transformer()

# Transform coordinates
x, y = transformer.transform_point(116.3, 39.9)
print(f"Transformed coordinates: ({x}, {y})")

API Documentation

CoordinateTransformer

The main coordinate transformation class provides the following methods:

  • set_source_crs(crs: str): Set source coordinate system
  • set_target_crs(crs: str): Set target coordinate system
  • initialize_transformer(): Initialize the transformer
  • transform_point(x: float, y: float) -> tuple[float, float]: Transform a single point

Server

The MCP protocol server provides two tools:

  • transform-coordinates: Transform coordinates between different systems

    {
      "source_crs": "EPSG:4326",
      "target_crs": "EPSG:3857",
      "coordinates": [
        {"x": 116.3, "y": 39.9}
      ]
    }
    
  • list-supported-crs: List all supported coordinate systems

Supported Coordinate Systems

1. EPSG Codes

Standard identifiers for coordinate reference systems:

  • EPSG:4326 - WGS84 Geographic
  • EPSG:3857 - Web Mercator
  • And many more...

2. WKT Format

Example of a geographic coordinate system:

GEOGCS["WGS 84",
  DATUM["WGS_1984",
    SPHEROID["WGS 84",6378137,298.257223563]],
  PRIMEM["Greenwich",0],
  UNIT["degree",0.0174532925199433]]

3. Proj Format

Example of WGS84:

+proj=longlat +datum=WGS84 +no_defs +type=crs

Development

Debugging

For the best debugging experience, use the MCP Inspector:

npx @modelcontextprotocol/inspector mcp-server-proj

Dependencies

  • Python >= 3.12
  • mcp >= 1.3.0
  • pyproj >= 3.0.0

License

MIT

Author

radial-hks ([email protected])

Contributing

Issues and Pull Requests are welcome!

from github.com/radial-hks/mcp-server-proj

Install Server PROJ in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install mcp-server-proj

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add mcp-server-proj -- uvx mcp-server-proj

FAQ

Is Server PROJ MCP free?

Yes, Server PROJ MCP is free — one-click install via Unyly at no cost.

Does Server PROJ need an API key?

No, Server PROJ runs without API keys or environment variables.

Is Server PROJ hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Server PROJ in Claude Desktop, Claude Code or Cursor?

Open Server PROJ on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Server PROJ with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs