AI knowledge base for Gemini CLI.

Plug Perfect Wiki into Gemini CLI, and your terminal agent can look up product specs, metric definitions and team processes in the middle of a task β€” then write back what it learned.

No credit cardSetup in under 10 minutesCancel anytime
01MCP setup

Connect Gemini CLI in two minutes.

A single gemini mcp add registers the server in your user settings. Authenticate once inside a session, and Gemini CLI can call every Perfect Wiki tool.

  • β†’Streamable HTTP transport β€” nothing to install locally
  • β†’User scope keeps it available across all your projects
  • β†’Browser sign-in, so no token sits in your settings file
Terminal Β· Gemini CLI
$ gemini mcp add --transport http --scope user perfect-wiki https://api.perfectwiki.xyz/mcp
$ gemini
> /mcp auth perfect-wiki
βœ“ Signed in to Perfect Wiki
02Read & write

Gemini CLI looks it up β€” instead of guessing.

When a task depends on how your company does things, Gemini CLI queries Perfect Wiki mid-task, cites the page it relied on, and can record new decisions back into the knowledge base.

  • β†’Answers cite the wiki page they came from
  • β†’Reads the full page when a summary isn’t enough
  • β†’Records new decisions with create_page and update_page
Gemini CLI
> Write the weekly churn query using our official metric definitions.
⏺ perfect-wiki · ask("churn rate definition")
⏺ perfect-wiki · get_page("Metrics glossary")
Per the Metrics glossary, churn counts paid workspaces that cancelled or lapsed for 30+ days, excluding trials. Saved to queries/weekly_churn.sql with a comment linking to the definition.
Setup guide

How to connect Perfect Wiki to Gemini CLI.

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

More details in the Perfect Wiki MCP server guide and Gemini CLI's MCP documentation.

Prefer a static API token?
Terminal Β· API token
$ gemini mcp add --transport http --scope user \
--header "Authorization: Bearer $PERFECT_WIKI_TOKEN" \
perfect-wiki https://api.perfectwiki.xyz/mcp

Generate a token in the Perfect Wiki settings of the knowledge base you want to expose. Each token is scoped to a single knowledge base and has read & write access.

Use cases

What your team does with Perfect Wiki in Gemini CLI.

Metric definitions everyone agrees on

Analysts and data engineers get SQL and dashboards built on the definitions in your metrics glossary β€” not on whatever the model assumes β€œactive” means.

> Look up how we define "active customer" before writing this query.

Find your way around a new service

Joining a team or picking up an unfamiliar repo? Gemini CLI reads the architecture and ownership pages and explains the service in context.

> Summarize the ingestion service architecture page and who owns it.

Specs next to the implementation

Compare what the product spec asks for with what the code does, and turn the gaps into a to-do list before release.

> Pull the checkout redesign spec and list anything not implemented yet.
The full toolset
ask()

Ask a natural-language question and get an AI answer with sources.

list_pages()

List every page in the connected knowledge base.

get_page()

Read the full content of a specific page.

create_page()

Create a new page β€” draft SOPs straight from chat.

update_page()

Update an existing page, so SOPs never go stale.

delete_page()

Remove pages that are no longer needed.

get_knowledgebase()

Get info about the connected knowledge base.

Free SOP templates

Start from a ready-made SOP. Keep it alive here.

Download any of our 284 standard operating procedure templates in Word, PDF, Excel or CSV, no sign-up needed. Then put it in Perfect Wiki so your team can find it and ask about it.

Browse all 284 SOP templates β†’
Common questions

Frequently asked questions

Didn't find what you're looking for? Contact our support β†’

Ready when you are

Put your SOPs to work in Gemini CLI.

Keep your SOPs, manuals and FAQs in Perfect Wiki β€” and give your whole team answers right where they work.

No credit cardSetup in under 10 minutesCancel anytime