gbp-mcp
Provides tools for managing Google Business Profile accounts and locations, including posts, reviews, media, attributes, services, location details, and performance metrics through Google APIs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
gbp-mcp
An MCP server for Google Business Profile. It lets AI assistants list accounts and locations, publish and update posts, manage reviews and photos, edit listing details, and read performance metrics.
The server speaks MCP over stdio. The included Docker image wraps that stdio server with supergateway so clients can connect over HTTP/SSE on port 8765 (container port 8000).
Built with Grok.
This project started from narkov/gbp-mcp-server and has been substantially extended (location editing, performance reads, media uploads, and safer post CTA handling). Code carried over from that project (some files modified) is in src/index.ts, src/auth.ts, src/auth-setup.ts, src/gbp-client.ts and src/tools/{accounts,media,posts,reviews}.ts; narkov's MIT notice is kept in LICENSE.
Tools
Tool | Description |
| List all Google Business Profile accounts accessible to the authenticated user |
| List business locations for an account |
| Get location details such as title, hours, phone, website, and address |
| Patch selected location fields (writes unless |
| List a location's services and categories |
| Replace a location's service list (writes unless |
| List predefined services for GBP categories |
| Get a location's attributes (payments, amenities, and similar) |
| Update location attributes (writes unless |
| List available attribute definitions for a category, region, or location |
| List local posts for a location |
| Get a specific post by resource name |
| Create a standard, event, or offer post, with optional media and CTA ( |
| Update a post's text and/or call-to-action ( |
| Delete a post |
| List reviews for a location |
| Get a specific review by resource name |
| Reply to a review on behalf of the business |
| Delete a business reply to a review |
| List photos and videos for a location |
| Upload a photo from a source URL ( |
| Delete a media item ( |
| Read-only performance metrics (calls, directions, clicks, impressions) |
| Read-only monthly search-keyword impressions |
| Read-only Google-updated view of a location, including pending or changed fields |
Write tools that support dryRun or validate_only default to a preview unless you explicitly opt into a live change.
Related MCP server: Google Business Profile MCP Server
Prerequisites
A Google Cloud project.
Enable the Business Profile APIs your tools will call, typically:
Business Profile Performance API (for the read-only performance tools)
Google access approval. Some Google Business Profile APIs are restricted. You may need to request access from Google before your OAuth client can call them. If a request fails with a service-disabled or access-not-granted error, check that the API is enabled and that your Cloud project has been approved.
An OAuth 2.0 Client ID (Web or Desktop) in that same Cloud project. Add your redirect URI (default
http://localhost:3456/callback) under Authorized redirect URIs.A Google account with access to the Google Business Profile locations you want to manage.
Use your own OAuth client. Do not reuse someone else's client ID or secret.
Setup
1. Clone and configure
git clone https://github.com/vivdigital/gbp-mcp.git
cd gbp-mcp
cp .env.example .envEdit .env and set your own values:
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=http://localhost:3456/callbackGOOGLE_REDIRECT_URI is optional and defaults to http://localhost:3456/callback. If you change it, add the same URI to your OAuth client and run the auth flow again.
2. Run the one-time auth flow
Tokens are stored on disk (default credentials/gbp-tokens.json) and refreshed automatically. They are never read from source control.
Local (Node.js 22+):
npm install
npm run authThis starts a temporary listener on the redirect URI, opens a browser for Google consent, and writes the tokens file. If the browser does not open, copy the URL printed in the terminal.
Where tokens are stored
Default:
./credentials/gbp-tokens.json(inside the container,/app/credentials/gbp-tokens.jsonwhen that directory is mounted).Override with
GBP_TOKENS_PATHif you want a different mounted file.
3. Run the server
Docker Compose (HTTP/SSE on host port 8765):
docker compose up --build -dExample Compose file (this repository's docker-compose.yml):
services:
gbp-mcp:
container_name: gbp-mcp
build:
context: .
dockerfile: Dockerfile
image: gbp-mcp:local
restart: unless-stopped
env_file:
- .env
environment:
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
GOOGLE_REDIRECT_URI: ${GOOGLE_REDIRECT_URI:-http://localhost:3456/callback}
volumes:
- ./credentials:/app/credentials
- .env:/app/.env:ro
ports:
- "8765:8000"Point an MCP client that speaks SSE at http://localhost:8765. Do not expose port 8765 to the public internet without an access control layer in front of it.
Local stdio (for MCP clients that spawn a process):
npm install
npm run buildExample MCP client config:
{
"mcpServers": {
"gbp": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/gbp-mcp",
"env": {
"GOOGLE_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}Prefer reading those values from your environment or a secrets manager rather than pasting them into a committed config file. The process still needs the tokens file at credentials/gbp-tokens.json (or GBP_TOKENS_PATH).
Environment variables
Variable | Required | Default | Purpose |
| Yes | — | OAuth 2.0 client ID from your Google Cloud project |
| Yes | — | OAuth 2.0 client secret |
| No |
| Must match an authorized redirect URI on the OAuth client |
| No |
| Path to the saved OAuth tokens file |
| No |
| Local rate guard for Performance API requests |
Security notes
Keep OAuth client secrets and tokens out of git. This repo gitignores
.env,credentials/, and*tokens*.json.Commit only
.env.examplewith empty secret values. Never commit a filled-in.envor a tokens file.Run
npm run authon a trusted machine, then mount the resulting tokens file into the container.Treat the MCP endpoint as a write-capable API for your business listings. Bind it to localhost or put it behind authentication; do not publish it open to the internet.
Development
npm install
npm testnpm test compiles TypeScript and runs the media-utility unit tests.
License
MIT © 2026 VIV Digital
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Google Business Profiles (Google My Business): hours, posts, photos, reviews and insights.
Google Business Profile for AI agents: per-location performance, listing fixes and posts.
Manage Google Business Profiles: reviews, posts, hours and rankings, with human approval.
Read-only business profiles for AI assistants: hours, contacts, services in 141 languages.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to fetch, analyze, and respond to Google Business Profile reviews with AI-generated replies through secure OAuth integration with Google's My Business API.14MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Google Business Profiles by creating posts, replying to reviews, listing locations, and more through natural language commands.1-
- FlicenseNot gradedqualityDmaintenanceExposes SMB business data as tools for AI agents, enabling retrieval of business profiles, services, availability, and reviews.-
- AlicenseAqualityBmaintenanceEnables managing Google Business Profiles through natural language: list locations, reply to reviews, create local posts, and fetch performance metrics.26150 npm7MIT