Public
Like
mcp-test
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v15View latest version
A Model Context Protocol (MCP) server that provides basic map and location information services.
- Get Coordinates: Retrieve latitude and longitude for named locations
- Get Nearby Places: Find points of interest near a specified location
Currently supports the following locations:
- Eiffel Tower (Paris)
- Central Park (New York)
- Statue of Liberty (New York)
GET /- Health check endpointGET /mcp- MCP service statusGET /mcp/manifest- MCP function manifestPOST /mcp/execute- Execute MCP functions
GET /openapi.yaml- OpenAPI specificationGET /.well-known/ai-plugin.json- AI plugin manifest
Get the coordinates for a named location.
Parameters:
place(string, required): The name of the location
Example Request:
{ "name": "get_coordinates", "input": { "place": "eiffel tower" } }
Example Response:
{ "output": { "lat": 48.8584, "lng": 2.2945 } }
Return a list of nearby places of interest.
Parameters:
place(string, required): The place to find nearby locations from
Example Request:
{ "name": "get_nearby_places", "input": { "place": "central park" } }
Example Response:
{ "output": [ { "name": "The Met", "lat": 40.7794, "lng": -73.9632 }, { "name": "American Museum of Natural History", "lat": 40.7813, "lng": -73.9735 } ] }
This MCP server can be integrated with MCP-compatible clients to provide location-based information services.
- Returns 404 for unknown locations
- Returns 400 for invalid function names or malformed requests
- All responses include appropriate HTTP status codes and error messages