Gemini CLI Integration

Updated today

โ€ข

1 min read

Connect Perfect Wiki to Gemini CLI, and Gemini reads your team's docs from the terminal and keeps them up to date.

How to connect

  1. Register the server:
    gemini mcp add --transport http --scope user perfect-wiki https://api.perfectwiki.xyz/mcp
  2. Start gemini and run /mcp auth perfect-wiki.
  3. Your browser opens Perfect Wiki: sign in, choose the knowledge bases and the access level, then click Allow access.
  4. Run /mcp to see the Perfect Wiki tools, then ask something like "What does our on-call handbook say about paging?"

With an API token

gemini mcp add --transport http --scope user \
    --header "Authorization: Bearer $PERFECT_WIKI_TOKEN" \
    perfect-wiki https://api.perfectwiki.xyz/mcp

Generate the token in the Perfect Wiki settings of the knowledge base you want to expose. Each token covers one knowledge base and has read & write access.

Tip: Gemini CLI can also move your old wiki or a docs folder into Perfect Wiki: ๐Ÿค– Import with an AI agent (ChatGPT, Claude, Codexโ€ฆ)

More: ๐Ÿ”Œ Perfect Wiki MCP Server ยท Gemini CLI MCP docs

Was this page helpful?