How to install Pi in Gemini CLI
Gemini CLI was replaced by Antigravity CLI in June 2026. On an enterprise licence or paid API key you can still install Pi by running "gemini mcp add pi npx -y @posthog/pi", then type /mcp to check it.
Built from the published package · server updated 8 days ago
- 1
Run the install command
In a terminal, run:
gemini mcp add pi npx -y @posthog/pi - 2
Check it
Inside Gemini CLI, type /mcp to list servers and tools.
MCP servers run with your permissions. If Pi needs an API key, add it under env in the config. Check its README.
Install Pi in another app
Similar servers
World Monitor is a real-time global intelligence dashboard covering conflict, markets, energy, trade, shipping and cyber. Its MCP server gives AI assistants access to that data, and it is aimed at analysts, agents and scripts.
Lets AI agents create and change Power BI semantic models through a local MCP server. Built for developers who want natural language modeling in Power BI Desktop, Fabric workspaces and PBIP files.
Seal Open Data serves French public datasets from data.gouv.fr to AI assistants. It covers topics such as territories, companies, housing and population. It is aimed at users who want to query French open data from clients like Claude.
Questions
Does Pi work in Gemini CLI?
Yes. Gemini CLI supports local and remote mcp servers, extensions (legacy), and Pi installs with the steps above.
Pi does not show up in Gemini CLI. What now?
Restart Gemini CLI fully, check the JSON is valid, and make sure Node.js (for npx) is installed. See common MCP errors and fixes.
Is Pi safe?
It scores 80 of 100. Review the code before you install it, and only give it the access it needs. Grades and details.
