调用友盟统计 OpenAPI,查询应用统计分析数据
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add c0f67b --env UMENG_API_KEY='<UMENG_API_KEY>' --env UMENG_API_SECRET='<UMENG_API_SECRET>' -- npx -y @umengfe/mcp-server-umeng-openapi~/.codex/config.toml
[mcp_servers.c0f67b]
command = "npx"
args = ["-y", "@umengfe/mcp-server-umeng-openapi"]
env = { UMENG_API_KEY = "<UMENG_API_KEY>", UMENG_API_SECRET = "<UMENG_API_SECRET>" }
# codex mcp add c0f67b --env UMENG_API_KEY='<UMENG_API_KEY>' --env UMENG_API_SECRET='<UMENG_API_SECRET>' -- npx -y @umengfe/mcp-server-umeng-openapi~/.cursor/mcp.json
{
"mcpServers": {
"c0f67b": {
"command": "npx",
"args": [
"-y",
"@umengfe/mcp-server-umeng-openapi"
],
"env": {
"UMENG_API_KEY": "<UMENG_API_KEY>",
"UMENG_API_SECRET": "<UMENG_API_SECRET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"c0f67b": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@umengfe/mcp-server-umeng-openapi"
],
"env": {
"UMENG_API_KEY": "<UMENG_API_KEY>",
"UMENG_API_SECRET": "<UMENG_API_SECRET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"c0f67b": {
"command": "npx",
"args": [
"-y",
"@umengfe/mcp-server-umeng-openapi"
],
"env": {
"UMENG_API_KEY": "<UMENG_API_KEY>",
"UMENG_API_SECRET": "<UMENG_API_SECRET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"c0f67b": {
"command": "npx",
"args": [
"-y",
"@umengfe/mcp-server-umeng-openapi"
],
"env": {
"UMENG_API_KEY": "<UMENG_API_KEY>",
"UMENG_API_SECRET": "<UMENG_API_SECRET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"c0f67b": {
"command": "npx",
"args": [
"-y",
"@umengfe/mcp-server-umeng-openapi"
],
"env": {
"UMENG_API_KEY": "<UMENG_API_KEY>",
"UMENG_API_SECRET": "<UMENG_API_SECRET>"
}
}
}
}Environment variables
UMENG_API_KEYUMENG_API_SECRET
Replace the placeholders with your own credentials and keep them out of version control.