laylzj777-analytics-mcp
An independently maintained fork of Google's experimental
Google Analytics MCP server,
based on upstream version 0.7.0, commit
a8ca729d4a8fa99bffe87962c17c0539c6aa9da7.
This fork is not an official Google release. The upstream Apache-2.0 license
and copyright notices are retained.
Install and run
Requires Python 3.10 or newer. Install into a dedicated Python environment:
python -m pip install laylzj777-analytics-mcp==0.7.0
analytics-mcp
google-analytics-mcp is an equivalent entry point. Both start the Python
server directly; Node.js, npm, and --managed-python are not needed.
The distribution installs its Python dependencies itself. Do not install the
upstream analytics-mcp distribution in the same environment: both provide the
analytics_mcp import package and the same commands.
For a managed plugin host, declare a single pip runtime dependency on
laylzj777-analytics-mcp==0.7.0, resolve its analytics-mcp entry point, and
preserve the Python runtime environment supplied by the host.
Credentials and validation
Enable the Google Analytics Admin and Data APIs and grant the account access
to the required Analytics properties. Configure Google Application Default
Credentials using GOOGLE_APPLICATION_CREDENTIALS (a local credential JSON
file path) and provide GOOGLE_PROJECT_ID as required by your host.
Never put credential files or tokens in this package or its configuration
examples.
Set MCP_VALIDATE_CREDENTIALS=true to validate credentials before tools/list
returns tools. Validation is disabled by default. Validation refreshes ADC and
performs a read-only Admin API request; an empty account list is valid. A
successful validation is cached for the server process.
Failures use sanitized JSON-RPC errors with
data.kind = "credential_validation":
| Code | data.code |
Retryable |
|---|---|---|
| -32042 | INVALID_CREDENTIALS | false |
| -32043 | INSUFFICIENT_PERMISSIONS | false |
| -32044 | UNAVAILABLE | true |
Error messages do not include credential paths, tokens, or account data. This is a fork-specific error contract, not a standard MCP authentication extension. The fork retains the upstream read-only Analytics reporting and account tools.
Metadata
Release files for laylzj777-analytics-mcp 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| laylzj777_analytics_mcp-0.7.0.tar.gz | 27.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| laylzj777_analytics_mcp-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.9 kB
Release files / laylzj777_analytics_mcp-0.7.0.tar.gz
| Download URL | laylzj777_analytics_mcp-0.7.0.tar.gz |
|---|---|
| Size | 27.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e95c388f4178d74c8aafa760834906ed0197c2e15e2bd608f27b8522381437b6
|
|
BLAKE2b-256 checksum How to use checksums |
f569fd68525ce3f6c82c0a2f5b1fa89e234d1c8c0e32d6bcb6af29288fed6520
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / laylzj777_analytics_mcp-0.7.0-py3-none-any.whl
| Download URL | laylzj777_analytics_mcp-0.7.0-py3-none-any.whl |
|---|---|
| Size | 31.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e17097b077dcc4faa4a963f7c5ab4d6e957e0373cc9c500f0577f938a7dae88c
|
|
BLAKE2b-256 checksum How to use checksums |
6f2208380e363880870a839d5cefeefc326d5900af35be7288af95df02f128f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|