Use FoxAPIs in Gemini CLI.
Gemini CLI reads MCP servers from its settings or from an extension file. FoxAPIs adds sourced people and company facts, paid per call in credits (nothing is charged when a call returns nothing): what it can answer, prices.
Connect FoxAPIs to Gemini CLI
MCP address: https://foxapis.com/mcp (Streamable HTTP). Header: Authorization: Bearer YOUR_KEY. Your key starts with fxp_.
- Save the block below as gemini-extension.json inside an extension folder, or put the mcpServers part in Gemini CLI's settings file.
- Set your key in place of YOUR_KEY, start Gemini CLI and list its tools.
gemini-extension.json
{
"name": "foxapis",
"version": "1.0.0",
"mcpServers": {
"foxapis": {
"httpUrl": "https://foxapis.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}
Get a key at the sign-up page. The tools and the price of each call are listed on the MCP page; the REST reference is the developer docs and the whole API as a file is openapi.json.
Three Gemini CLI prompts that name FoxAPIs
- Build a lead card: enrich the founder of acme.com with FoxAPIs and show the sourced fields.
- Use FoxAPIs to find a work email for Jane Example at acme.com, and say so when nothing is found instead of guessing.
- Add a "Check this company" button that calls FoxAPIs from the terminal and shows what it returns with its sources.
Keep the key safe in Gemini CLI
- Call FoxAPIs from a backend or an edge function, and keep the key as a secret there. Never put it in code that runs in a visitor's browser.
- Set a monthly credit limit for the key on your account page before you share a project.
- If a key is ever pasted into a chat or a public file, delete it and create a new one.
A rules file for Gemini CLI
A plain-text file for the agent that writes your code: the key stays a server-side secret, calls are made from the server, every fact keeps its source, an empty field stays empty, and one real call with its real answer. Download foxapis-agent-rules.txt.
Put its text where Gemini CLI keeps standing instructions for a project (a rules or knowledge setting). The name and place of that setting are in Gemini CLI's own docs; we did not confirm them for this page.
Start Gemini CLI from a template
Open-source starter apps that call FoxAPIs: a lead finder, a company check, a funding tracker and a Supabase edge function. Each one has a Deploy on Vercel link that asks for your key. foxapis-templates on GitHub
The one thing to know about Gemini CLI
Not verified: the shape follows Gemini CLI's documented MCP settings (httpUrl and headers) but we did not run it. Do not commit a real key.
FoxAPIs is not affiliated with or endorsed by Gemini CLI. Config shapes are shown as that tool's own documentation describes them; where we did not run one, the page says so.