Skip to the page

Use SpecStream in Gemini CLI

Add SpecStream to Gemini CLI with one entry in settings.json. Gemini then searches the live web, reads the pages it finds and builds lists from your terminal, with a source on every value.

What you need

  • A SpecStream account. Start free: $2 of credit, no card.

The server address is the same for every client:

Server address
https://api.specstream.ai/mcp

Connect

  1. Open ~/.gemini/settings.json for every project, or .gemini/settings.json in one project, and add the server. A Streamable HTTP server takes httpUrl:
settings.json
{
"mcpServers": {
"specstream": {
"httpUrl": "https://api.specstream.ai/mcp"
}
}
}
  1. Start Gemini CLI and run /mcp auth specstream. Sign in to SpecStream in the browser window that opens.
  2. Run /mcp to see the server and its tools, then ask.

Or use an API key

Create an API key

  1. Open Agents & API in the workspace and choose API keys.
  2. Choose Create API key. Give it only what the task needs: read, prepare or execute permissions, the projects it may use, an expiry and a spending limit.
  3. Copy the key when it's shown. It isn't shown again.

Add the server with the key

Gemini CLI takes the key as a header instead of signing in:

settings.json
{
"mcpServers": {
"specstream": {
"httpUrl": "https://api.specstream.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_SPECSTREAM_API_KEY"
}
}
}
}

Keep a file with a key in it in your home folder, not in a project you commit.

Using the Gemini app instead of the terminal? See SpecStream in Gemini.

What it costs

A new account starts with $2 of credit, no card. A web search from your agent is $1 per 1,000 searches on the fast tier and $5 per 1,000 on the default tier. Reading pages is $0.80 per 1,000 pages. A list is priced before it runs, and nothing is spent until you approve a maximum.

For steady use, start the Starter plan: $49 a month of credit, enough for 49,000 fast searches.

Try it

Once Gemini CLI shows SpecStream's tools, ask in your own words:

Use SpecStream to find every public company that reported a data breach to a US state attorney general this month, with the date and the number of people affected. Show me the price first.

SpecStream reads the request back and gives you the price. Nothing is spent until you approve a maximum, and you pay per match, each with its source.

Set access and spending limits

An agent works on your account, with the same balance, permissions and spending limits you have. Give its key the least it needs: read, prepare or execute permissions, project limits, an expiry and a spending ceiling. Paid work needs an approved price with a ceiling, and reading, exporting and sharing cost nothing.

More

Get started free

Gemini CLI's own documentation: Gemini CLI: MCP servers.