home / mcp / mybusiness mcp server
MCP Server generated by mcp.ag2.ai
Configuration
View docs{
"mcpServers": {
"ag2-mcp-servers-my-business-account-management-api": {
"command": "python",
"args": [
"mcp_server/main.py",
"stdio"
],
"env": {
"CONFIG": "JSON string containing the configuration",
"SECURITY": "Environment variables for security parameters (e.g., API keys)",
"CONFIG_PATH": "Path to a JSON configuration file (e.g., mcp_server/mcp_config.json)"
}
}
}
}You run an MCP Server that exposes a defined API through a standardized protocol, allowing clients to interact with your Google My Business Account Management capabilities in a structured, context-aware way. This server lets you host the MCP endpoint locally or remotely and manage configuration securely while enabling consistent client communication.
To use the MCP Server, start it in stdio mode and connect your MCP client to the local process. You will typically run the server as a local service, then initiate client calls that leverage the MCP protocol to access and manage your My Business Account data. Your client can request actions, query context, and receive structured responses that align with the predefined API surface.
Key usage patterns include starting the server, supplying a configuration if needed, and then invoking client operations that your application requires. Ensure your client handles the MCP protocol correctly and respects the security parameters you configure.
Prerequisites include Python 3.9 or newer, along with pip and uv to run development and test commands.
1. Clone the repository and navigate into the project directory.
git clone <repository-url>
cd mcp-server2. Install dependencies for development. Use the dedicated setup script if you are in a dev container, or run the standard installation manually.
pip install -e ".[dev]"
```
Or, using uv to run the editable install:
```
uv pip install --editable ".[dev]"3. Start the MCP server in stdio mode to verify it runs locally.
python mcp_server/main.py stdioEnvironment variables you may use to configure the server include CONFIG_PATH, CONFIG, and SECURITY. CONFIG_PATH should point to a JSON configuration file, CONFIG can supply a JSON string with the configuration, and SECURITY holds environment settings for security parameters such as API keys. The exact loading behavior is controlled by the main entry point in the server script.
Check code quality with a linter to catch syntax and style issues using ruff.
Automatically format code with ruff format to maintain consistent styling.
Run static analysis tools (mypy, bandit, semgrep) to identify type issues and security risks.
Execute tests with pytest and generate a coverage report to ensure code reliability.
Run pre-commit hooks prior to commits to catch issues early.
Start the MCP server in stdio mode using the python command and main script.