EPSG MCP Server
An MCP server that provides knowledge about Coordinate Reference Systems (CRS).
Provides information on Japan's JGD2011 geodetic datum, Japan Plane Rectangular Coordinate Systems (Zones I-XIX), and global coordinate systems such as WGS84 and Web Mercator. Coordinate transformation execution is delegated to mcp-server-proj, focusing on knowledge provision and decision support.
Features
CRS Search: Search CRS by EPSG code, name, region, or prefecture
Detailed Information: Get detailed information on geodetic datum, projection method, area of use, accuracy characteristics, and more
Regional Listings: List CRS available in Japan/Global with purpose-specific recommendations
CRS Recommendation: Recommend the optimal CRS for each purpose and location (with multi-zone support for Hokkaido and Okinawa)
Usage Validation: Verify the validity of CRS selection and present issues with suggestions for improvement
Transformation Routing: Propose optimal transformation paths using BFS graph search (with reverse transformation support)
CRS Comparison: Compare CRS from 7 perspectives (datum, projection, accuracy, distortion, compatibility, etc.)
Best Practices: CRS usage guidance on 10 topics (surveying, web mapping, data exchange, etc.)
Troubleshooting: Diagnose CRS problems by symptoms (coordinate shifts, calculation errors, etc.)
Japan-focused: Full support for JGD2011 and Japan Plane Rectangular Coordinate Systems I-XIX
Offline Operation: Local database requires no external API
Internationalized: Tool definitions and parameter descriptions in English (usable by AI agents in any language)
Installation
Or run directly:
Usage
Claude Desktop
Add to claude_desktop_config.json:
Enabling Additional Country Packs
By default, only the Japan pack is loaded. To enable additional packs (e.g., US, UK), set the EPSG_PACKS environment variable:
Available packs: jp (Japan), us (United States), uk/gb (United Kingdom)
Language Settings
By default, output is in English. To get Japanese output, set the EPSG_LANG environment variable:
MCP Inspector
Tools
search_crs
Search CRS by keyword.
Usage Examples:
"Search for CRS related to JGD2011"
"Find projected coordinate systems available in Tokyo"
"Get information about EPSG code 6677"
get_crs_detail
Get detailed CRS information by EPSG code.
Usage Examples:
"Tell me the details of EPSG:6677"
"What are the characteristics of Web Mercator (3857)?"
list_crs_by_region
Get available CRS list and recommendations by region.
Usage Examples:
"List CRS available in Japan"
"What global geographic coordinate systems are there?"
recommend_crs
Recommend optimal CRS based on purpose and location.
Usage Examples:
"What's the best CRS for distance calculation around Tokyo?"
"What CRS should I use for surveying in Sapporo, Hokkaido?"
"I want to display a map of all Japan in a web app"
validate_crs_usage
Validate whether a specified CRS is appropriate for a specific purpose and location.
Detected Issues Examples:
DEPRECATED_CRS: Using deprecated CRSAREA_DISTORTION: Area calculation with Web MercatorZONE_MISMATCH: Using Zone I (for Nagasaki) in TokyoGEOJSON_INCOMPATIBLE: Outputting GeoJSON with projected CRS
Usage Examples:
"Is it OK to use Web Mercator for area calculation in Hokkaido?"
"Any issues with storing survey data in Japan using EPSG:4326?"
suggest_transformation
Suggest optimal transformation path between two CRS.
TransformationPath:
steps: Array of transformation steps (from, to, method, accuracy, isReverse)totalAccuracy: Overall accuracycomplexity: "simple" | "moderate" | "complex"
Features:
BFS graph search for paths up to 4 steps
Automatic consideration of reverse transformations (reversible: true)
Warnings when using deprecated CRS (Tokyo Datum, JGD2000)
Accuracy warnings for large area data transformation
Usage Examples:
"How to transform from Tokyo Datum to JGD2011?"
"Show me the transformation path from WGS84 to Web Mercator"
compare_crs
Compare two CRS from various perspectives.
Comparison Aspects:
datum: Datum comparison (e.g., WGS84 vs JGD2011 are practically identical)projection: Projection comparisonarea_of_use: Area of use comparisonaccuracy: Accuracy characteristics comparisondistortion: Distortion characteristics comparisoncompatibility: GIS/Web/CAD/GPS compatibility comparisonuse_cases: Use case suitability comparison (score-based)
Usage Examples:
"What's the difference between WGS84 and JGD2011?"
"Compare Web Mercator and geographic CRS"
"Compare JGD2000 and JGD2011 from the datum perspective"
get_best_practices
Get best practices for CRS usage.
Practice:
title: Practice namedescription: Descriptionpriority: "must" | "should" | "may"rationale: Rationaleexample?: Concrete example
Usage Examples:
"What are the best practices for surveying in Japan?"
"How to choose coordinate systems when creating web maps"
"What to watch out for when exchanging data in GeoJSON"
troubleshoot
Troubleshoot CRS-related problems.
Supported Symptoms:
Coordinates shift by hundreds of meters to kilometers (Tokyo Datum issues, etc.)
Coordinates shift by 1-several meters (transformation accuracy limits, etc.)
Coordinates shift by centimeters to tens of centimeters (WGS84/JGD2011 difference, etc.)
Area/distance calculations are incorrect (Web Mercator distortion, etc.)
Data doesn't display (CRS mismatch, etc.)
Coordinate transformation errors (unregistered parameters, etc.)
Usage Examples:
"Coordinates are off by 400m"
"Area calculation results are wrong"
"Old data and new data don't align"
Supported CRS
Japan (JGD2011)
EPSG | Name | Usage |
6668 | JGD2011 | Geographic CRS (reference) |
6669-6687 | Japan Plane Rectangular CS I-XIX | Surveying, large-scale maps |
4612 | JGD2000 | Legacy (deprecated) |
United States (NAD83)
EPSG | Name | Usage |
4269 | NAD83 | Geographic CRS (standard) |
6318 | NAD83(2011) | Latest realization |
5070 | NAD83 / Conus Albers | Area calculations |
2229 | NAD83 / California zone 5 | State Plane example |
2263 | NAD83 / New York Long Island | State Plane example |
United Kingdom (OSGB36/ETRS89)
EPSG | Name | Usage |
4277 | OSGB36 | Geographic CRS (legacy) |
4258 | ETRS89 | Geographic CRS (modern) |
27700 | British National Grid | Surveying, mapping |
2157 | Irish Transverse Mercator | Northern Ireland |
Global
EPSG | Name | Usage |
4326 | WGS 84 | GPS/GeoJSON standard |
3857 | Web Mercator | Web map display |
326xx | UTM zones | Distance/area calculation |
Extended CRS Support (Optional)
By default, this server provides CRS data for Japan and major global systems. For access to the complete EPSG registry (10,000+ CRS), you can optionally enable SQLite support.
Setup
Download EPSG Database
Install sql.js (if not already installed)
Configure Environment
Set the EPSG_DB_PATH environment variable:
Or configure in Claude Desktop's claude_desktop_config.json:
Data Source
The EPSG database is provided by PROJ, which redistributes the IOGP EPSG Geodetic Parameter Dataset. Please refer to the EPSG Terms of Use for licensing information.
Development
Documentation
Creating Country Packs - Guide for adding new country/region support
Roadmap
Phase 1 ✅: search_crs, get_crs_detail, list_crs_by_region
Phase 2 ✅: recommend_crs, validate_crs_usage
Phase 3 ✅: suggest_transformation, compare_crs
Phase 4 ✅: get_best_practices, troubleshoot
Related Projects
mcp-server-proj - MCP server for coordinate transformation execution
EPSG.io - EPSG coordinate system database
License
MIT License - see LICENSE for details.