• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
dthyresson

dthyresson

mcp-test

Let's make an easy MCP server using Val Town to use in Cursor
Public
Like
mcp-test
Home
Code
2
README.md
H
main.ts
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
7/4/2025
Viewing readonly version of main branch: v19
View latest version
README.md

Map Info MCP Server

A Model Context Protocol (MCP) server that provides basic map and location information services.

Features

  • Get Coordinates: Retrieve latitude and longitude for named locations
  • Get Nearby Places: Find points of interest near a specified location

Available Locations

Currently supports the following locations:

  • Eiffel Tower (Paris)
  • Central Park (New York)
  • Statue of Liberty (New York)

API Endpoints

MCP Endpoints

  • GET / - Health check endpoint
  • GET /mcp - MCP service status
  • GET /mcp/manifest - MCP function manifest
  • POST /mcp/execute - Execute MCP functions

Documentation Endpoints

  • GET /openapi.yaml - OpenAPI specification
  • GET /.well-known/ai-plugin.json - AI plugin manifest

MCP Functions

get_coordinates

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 } }

get_nearby_places

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 } ] }

Usage

This MCP server can be integrated with MCP-compatible clients to provide location-based information services.

Error Handling

  • Returns 404 for unknown locations
  • Returns 400 for invalid function names or malformed requests
  • All responses include appropriate HTTP status codes and error messages
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.