Skip to content

Commit 6818a99

Browse files
authored
Add Google Analytics MCP section for Claude Code (#174)
1 parent 77e4a68 commit 6818a99

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,23 @@ Credentials saved to file: [PATH_TO_CREDENTIALS_JSON]
148148
}
149149
```
150150

151+
### Configure Claude Code
152+
153+
1. Add the MCP server with the following command:
154+
155+
Replace `PATH_TO_CREDENTIALS_JSON` with the path you copied in the previous
156+
step, and replace `YOUR_PROJECT_ID` with the
157+
[project ID](https://support.google.com/googleapi/answer/7014113) of your
158+
Google Cloud project.
159+
160+
```shell
161+
claude mcp add analytics-mcp \
162+
--scope user \
163+
-e "GOOGLE_APPLICATION_CREDENTIALS=PATH_TO_CREDENTIALS_JSON" \
164+
-e "GOOGLE_PROJECT_ID=YOUR_PROJECT_ID" \
165+
-- pipx run analytics-mcp
166+
```
167+
151168
## Try it out 🥼
152169

153170
Launch Gemini Code Assist or Gemini CLI and type `/mcp`. You should see

0 commit comments

Comments
 (0)