This project demonstrates a Model Context Protocol (MCP) server for managing locations using .NET 8 and the ModelContextProtocol library.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"try-mcp-location-server-demo": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This project demonstrates a Model Context Protocol (MCP) server for managing locations using .NET 8 and the ModelContextProtocol library.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in maps
Real-time BART departures, trip planning, fares, stations, and advisories.
A Model Context Protocol (MCP) server providing TomTom's location services, search, routing, and traffic data to AI agents.
MCP server for the VesselAPI — maritime vessel tracking, port events, emissions, and navigation data
Global weather API: forecasts, historical data, marine, ski, astronomy and timezone.
MCP Security Weekly
Get CVE alerts and security updates for Try Mcp Location Server Demo and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This project demonstrates a Model Context Protocol (MCP) server for managing locations using .NET 8 and the ModelContextProtocol library.
git clone https://github.com/nisalgunawardhana/Try-mcp-location-server-demo.git
cd LocationServer
dotnet restore
dotnet run --project LocationServer.csproj
Open this folder in VS Code.
Ensure .vscode/mcp.json exists and is configured (see below).


Can you retrieve all locations from the server
Model Context Protocol (MCP) is an open protocol for interacting with AI models and tools in a structured, language-agnostic way. MCP enables clients (like VS Code Copilot Chat) to discover, invoke, and interact with server-side tools and models using a standard interface. This makes it easy to build, test, and extend AI-powered tools and services.
Models/Location.cs - Location modelServices/LocationService.cs - Service for managing locationsData/locations.json - Data file with 50 real locationsTools/LocationsTools.cs - MCP tools for location operationsProgram.cs - Entry point and server setupThis demo exposes the following MCP tools for use in Copilot Chat or any MCP client:
Tools/LocationsTools.cs and annotating it with [McpServerTool].Tools/LocationsTools.cs and use the [McpServerTool] attribute.To add new tools, create static methods in Tools/LocationsTools.cs and annotate them with [McpServerTool].
Follow me on social media for more sessions, tech tips, and giveaways:
Feel free to connect and stay updated!
This project is licensed under the MIT License. See the LICENSE file for details.