WenElevating.MapMcpServer
Implementation of MCP service based on Gaode Map API
claude mcp add --transport stdio wenelevating-wenelevating.mapmcpserver dotnet run --project project position --no-build \ --env GaoDeMapKey="Your GaoDe API key"
How to use
WenElevating.MapMcpServer is a MVC-based MCP service that integrates the Gaode (Amap) Map API to provide a set of location and routing features. Before starting, ensure you have a Gaode Map API key and set it in the environment variable GaoDeMapKey. The server is intended to be started via the MCP mechanism by running the configured command, which in this case uses dotnet to run the project. Once running, the MCP framework will expose a set of supported amap APIs through the MCP interface, including geolocation, weather for a city, geocoding, routing (pedestrian, bus, driving, cycling), distance measurement, and keyword search. To use these capabilities, clients interact with the MCP server named map and the corresponding tool endpoints that the MCP service wires up from the Gaode Map API integration. The README example demonstrates the server being started by invoking dotnet run with a specific project, enabling the tool to respond to requests via the MCP context.
How to install
Prerequisites:
- .NET SDK installed on your machine.
- A GaoDe (Gaode) Map API key.
- Access to a suitable project path referenced as the --project argument (in this example, 'project position').
Step-by-step:
- Set your Gaode API key in the environment:
- On Windows: set GaoDeMapKey=your_api_key in System Environment Variables.
- On macOS/Linux: export GaoDeMapKey=your_api_key in your shell profile.
- Create or update the MCP configuration file (e.g., mcp_config.json) with the content provided in the mcp_config section, ensuring the key name matches GaoDeMapKey and the project path matches your solution: { "mcpServers": { "map": { "command": "dotnet", "args": [ "run", "--project", "project position", "--no-build" ], "env": { "GaoDeMapKey": "Your GaoDe API key" } } } }
- Place the configuration file where your MCP runner expects it (per your MCP setup guidance).
- Start the MCP server using the configured command, for example by launching the command shown in the mcp_config (dotnet run --project "project position" --no-build).
- Verify the server is reachable through the MCP host and begin issuing requests to the supported amap APIs (location, weather, geocoding, pedestrian/bus/driving/cycling routes, distance, keyword search).
Additional notes
Tips and common issues:
- Ensure the GaoDeMapKey environment variable is set before starting the service; without it, API calls will fail.
- The example shows a specific --project path ("project position"); replace this with your actual project path or solution structure.
- If you update the API key or environment variables, restart the MCP server to apply changes.
- The supported amap APIs include IP geolocation, city weather, geocoding, pedestrian/bus/driving/cycling route planning, distance measurement, and keyword search. Ensure you have appropriate permissions and quota for the Gaode Map API.
- If the server fails to start, check that the .NET project builds successfully with --no-build or remove it if you want a full build first. Ensure the MCP runner has network access to Gaode services.
- Port conflicts or firewall rules may prevent the MCP endpoint from being reachable; verify network connectivity for the host running the server.
Related MCP Servers
mcp-for-beginners
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
SharpToolsMCP
A suite of MCP tools for AIs to analyze and modify C# solutions with high signal, Roslyn powered context.
mssql
MSSQL Server MCP implementation written in C#
UnityMCP
Unity Editor integration with Model Context Protocol (MCP) enabling AI assistants like Claude to interact with Unity projects. Features a TypeScript MCP server and C# Unity plugin with extensible command handler architecture, TCP/IP communication, and dynamic plugin discovery.
csharp-runner
fast, secure c# runner
mobile-dev
This is a MCP designed to manage and interact with mobile devices and simulators.