npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mapular/places-mcp

v0.1.2

Published

General-purpose MCP server for Google Places API Nearby Search with explicit field-mask control.

Readme

Mapular Places MCP

Mapular Places MCP lets Claude use Google Places API Nearby Search.

It provides one tool:

google_places_nearby_search

Use it when Claude should search for places near coordinates, using Google Places types such as restaurant, doctor, physiotherapist, school, or store.

What you need

Before setup, you need:

  1. Node.js 20 or newer installed
  2. A Google Maps / Google Places API key
  3. Places API (New) enabled in Google Cloud
  4. Billing enabled in Google Cloud

Your Google API key stays on your computer. Mapular does not receive your key or your search requests.

Setup option 1: local install from this repo

Use this option if you cloned or downloaded this repository.

Step 1: install and build

Open a terminal in the repository folder and run:

npm install
npm run build

Step 2: add this to your Claude MCP config

Replace /absolute/path/to/mapular-places-mcp with the real path to this folder and YOUR_GOOGLE_PLACES_API_KEY with your Google Places API key.

{
  "mcpServers": {
    "mapular-places": {
      "command": "node",
      "args": ["/absolute/path/to/mapular-places-mcp/dist/server.js"],
      "env": {
        "GOOGLE_MAPS_API_KEY": "YOUR_GOOGLE_PLACES_API_KEY"
      }
    }
  }
}

Step 3: restart Claude

Restart Claude after saving the config.

Claude starts the MCP server itself. You do not need to run npm run start when using Claude.

For developers only: Use npm run start only for manual development/testing, not for normal Claude setup.

GOOGLE_MAPS_API_KEY=your_key npm run start

Setup option 2: use the npm package

Use this option if the package is available on npm. You do not need to clone this repository or run npm install / npm run build.

Add this to your Claude MCP config:

{
  "mcpServers": {
    "mapular-places": {
      "command": "npx",
      "args": ["-y", "@mapular/places-mcp"],
      "env": {
        "GOOGLE_MAPS_API_KEY": "YOUR_GOOGLE_PLACES_API_KEY"
      }
    }
  }
}

Restart Claude after saving the config.

How it works

  • Claude starts this MCP server locally on your computer.
  • Claude talks to the server through MCP.
  • The server sends Nearby Search requests to Google Places API.
  • Your Google API key is read from the Claude config.
  • Mapular does not host this server and does not see your requests.

Tool input

The tool supports Google Places Nearby Search parameters:

  • locationRestriction.circle.center.latitude
  • locationRestriction.circle.center.longitude
  • locationRestriction.circle.radius
  • includedTypes
  • excludedTypes
  • includedPrimaryTypes
  • excludedPrimaryTypes
  • maxResultCount
  • rankPreference
  • languageCode
  • regionCode
  • fieldMask

It also supports a simpler coordinate format:

{
  "center": {
    "latitude": 52.5288656,
    "longitude": 13.4560194
  },
  "radius": 400,
  "includedTypes": ["physiotherapist"]
}

The tool is only for Nearby Search. It does not do keyword search, Text Search, or web search.

Field masks

Field masks control which fields Google returns.

If you do not provide a field mask, this default is used:

places.id
places.displayName
places.primaryType
places.types
places.formattedAddress
places.location
places.rating
places.userRatingCount
places.googleMapsUri
places.websiteUri
places.nationalPhoneNumber

You can request any valid Nearby Search field mask that starts with places..

Important: pass fieldMask as a real JSON array, not as text containing an array. It looks like this:

{
  "fieldMask": ["places.id", "places.displayName", "places.location"]
}

Prompt examples

See examples/physio-referrer-analysis.prompt.md for a complete Claude/Cowork prompt that runs two Nearby Search calls and formats competitor/referrer tables.

Advanced: manual testing without Claude

These commands are only for developers or manual testing.

Run the server manually:

GOOGLE_MAPS_API_KEY=your_key npm run start

Run one tool call from the terminal:

GOOGLE_MAPS_API_KEY=your_key npm run exec -- google_places_nearby_search '{"center":{"latitude":52.5288656,"longitude":13.4560194},"radius":400,"includedTypes":["physiotherapist"]}'

Google-style locationRestriction:

GOOGLE_MAPS_API_KEY=your_key npm run exec -- google_places_nearby_search '{"locationRestriction":{"circle":{"center":{"latitude":52.5288656,"longitude":13.4560194},"radius":400}},"includedTypes":["doctor","medical_clinic","medical_center","general_hospital","hospital"],"maxResultCount":20,"rankPreference":"POPULARITY","languageCode":"de","regionCode":"DE"}'

Strict field-mask example:

GOOGLE_MAPS_API_KEY=your_key npm run exec -- google_places_nearby_search '{"center":{"value":"52.5288656,13.4560194","isCoordinates":true},"radius":400,"includedTypes":["physiotherapist"],"fieldMask":["places.id","places.displayName","places.primaryType","places.types","places.formattedAddress","places.location","places.rating","places.userRatingCount","places.googleMapsUri","places.websiteUri","places.nationalPhoneNumber"]}'

Legal & attribution

This MCP server calls the Google Places API on your behalf using your own API key.

You are responsible for:

  • Complying with the Google Maps Platform Terms of Service
  • Displaying attribution ("Powered by Google") wherever Places data is shown to end users, as required by Google's attribution policy
  • All API usage costs billed to your Google Cloud project
  • Ensuring your use case is permitted under the Google Maps Platform Terms

Mapular does not receive your API key, query data, or results. All requests go directly from your machine to Google.

License

Apache-2.0