@surendranb/google-analytics-mcp 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +29 -0
- package/package.json +39 -0
package/bin/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Google Analytics 4 MCP Server NPX Wrapper
|
|
5
|
+
* Spawns the python package via uvx with full stdio passthrough for MCP hosts.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const { spawn } = require('child_process');
|
|
9
|
+
|
|
10
|
+
const args = ['--from', 'google-analytics-mcp', 'ga4-mcp-server', ...process.argv.slice(2)];
|
|
11
|
+
|
|
12
|
+
const child = spawn('uvx', args, {
|
|
13
|
+
stdio: 'inherit',
|
|
14
|
+
shell: process.platform === 'win32'
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
child.on('error', (err) => {
|
|
18
|
+
if (err.code === 'ENOENT') {
|
|
19
|
+
console.error('[google-analytics-mcp Error] "uvx" command not found.');
|
|
20
|
+
console.error('Please install uv (https://astral.sh/uv) or install directly via pip: pip install google-analytics-mcp');
|
|
21
|
+
} else {
|
|
22
|
+
console.error('[google-analytics-mcp Error] Failed to start server process:', err.message);
|
|
23
|
+
}
|
|
24
|
+
process.exit(1);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
child.on('close', (code) => {
|
|
28
|
+
process.exit(code || 0);
|
|
29
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@surendranb/google-analytics-mcp",
|
|
3
|
+
"version": "2.11.1",
|
|
4
|
+
"description": "Model Context Protocol (MCP) server for Google Analytics 4 (GA4) data and schema discovery via NPX. Spawns the Python package through uvx with full stdio passthrough.",
|
|
5
|
+
"main": "bin/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"google-analytics-mcp": "bin/index.js",
|
|
8
|
+
"ga4-mcp": "bin/index.js",
|
|
9
|
+
"ga4-mcp-server": "bin/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "node bin/index.js --help"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"mcp",
|
|
16
|
+
"mcp-server",
|
|
17
|
+
"google-analytics",
|
|
18
|
+
"ga4",
|
|
19
|
+
"analytics",
|
|
20
|
+
"ai-agent",
|
|
21
|
+
"anthropic",
|
|
22
|
+
"claude",
|
|
23
|
+
"claude-code",
|
|
24
|
+
"cursor"
|
|
25
|
+
],
|
|
26
|
+
"author": "Surendran B <reachsuren@gmail.com>",
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/surendranb/google-analytics-mcp.git"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/surendranb/google-analytics-mcp/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/surendranb/google-analytics-mcp#readme",
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=16.0.0"
|
|
38
|
+
}
|
|
39
|
+
}
|