{
  "markdown": "# google-maps-places-mcp\n\nMCP server for Google Maps Places API - search for places and get photos.\n\n## Use Cases\n\n**Meeting coordination**: Someone emails \"Let's meet at Nando's near the office - what time works best for you?\" → your AI assistant looks up the location, checks opening hours, and adds it to your calendar with the address.\n\n**Local recommendations**: Ask \"find a quiet café with WiFi near King's Cross for a 2-hour work session\" → get places with ratings, hours, and photos to help you decide.\n\n**Address validation**: Confirm or autocomplete partial addresses before sending mail or booking deliveries.\n\n(These are just examples - any workflow that needs place search or business info can use this.)\n\n## Setup\n\n### 1. Create Google OAuth credentials\n\n1. Go to [Google Cloud Console](https://console.cloud.google.com/)\n2. Create a new project (or use existing)\n3. Enable the **Places API (New)**\n4. Go to **APIs & Services** → **OAuth consent screen**, set up consent screen\n5. Go to **APIs & Services** → **Credentials** → **Create Credentials** → **OAuth client ID**\n6. Choose **Web application**\n7. Add `http://localhost:3000/callback` to **Authorized redirect URIs**\n8. Note your Client ID and Client Secret\n\n### 2. Run the server\n\n```bash\nGOOGLE_CLIENT_ID='your-client-id' \\\nGOOGLE_CLIENT_SECRET='your-client-secret' \\\nMCP_TRANSPORT=http \\\nnpm start\n```\n\nThe server runs on `http://localhost:3000` by default. Change with `PORT=3001`.\n\n### 3. Add to your MCP client\n\nWith the server running, follow the instructions on [install-mcp](https://adamjones.me/install-mcp/?url=http://localhost:3000/mcp), which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).\n\n## Architecture\n\nThis server acts as an **OAuth proxy** to Google:\n\n```mermaid\ngraph LR\n    A[MCP client] <--> B[google-maps-places-mcp] <--> C[Google OAuth/API]\n```\n\n1. Server advertises itself as an OAuth authorization server via `/.well-known/oauth-authorization-server`\n2. `/register` returns the Google OAuth client credentials\n3. `/authorize` redirects to Google, encoding the client's callback URL in state\n4. `/callback` receives the code from Google and forwards to the client's callback\n5. `/token` proxies token requests to Google, injecting client credentials\n6. `/mcp` handles MCP requests, using the bearer token to call Places API\n\nThe server holds no tokens or state - it just proxies OAuth to Google.\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `places_text_search` | Search for places by text query (e.g., \"coffee shops near me\") |\n| `places_photo_get` | Get a photo URL for a place |\n\n## OAuth Scope\n\n- `cloud-platform` - Access to Google Cloud APIs (required for Places API New)\n\n## Contributing\n\nPull requests are welcomed on GitHub! To get started:\n\n1. Install Git and Node.js\n2. Clone the repository\n3. Install dependencies with `npm install`\n4. Run `npm run test` to run tests\n5. Build with `npm run build`\n\n## Releases\n\nVersions follow the [semantic versioning spec](https://semver.org/).\n\nTo release:\n\n1. Use `npm version <major | minor | patch>` to bump the version\n2. Run `git push --follow-tags` to push with tags\n3. Wait for GitHub Actions to publish to the NPM registry.\n",
  "bytes": 3257,
  "sha": "520851c9fa33ece639616fab5975cc3437a7391cccc378ae26c00e15830ebcd3",
  "repo_slug": "domdomegg/google-maps-places-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_domdomegg_google_maps_places_m_947b62b1/readme"
}