
This guide walks you through connecting the Gemini CLI to the Finix MCP server. After setup, you can ask Gemini questions about Finix and get answers from our documentation.
Before you begin, make sure you have:
- Node.js 20.0.0 or later.
- A Google account - The free tier (Gemini Code Assist for individuals) works; no Google Cloud project needed.
- Internet connection - Required to reach docs.finix.com.
If you do not have the Gemini CLI installed yet:
npm install -g @google/gemini-cliAfter installing, run gemini and select Sign in with Google to authenticate via your browser.
Alternatively, set a GEMINI_API_KEY environment variable from Google AI Studio to avoid browser-based authentication.
Refer to the Gemini CLI documentation for detailed installation instructions.
Add the Finix MCP server with a single command:
gemini mcp add --transport http finix-redocly-mcp https://docs.finix.com/mcpThe Gemini CLI now accesses Finix documentation.
The Finix MCP server's search tool finds results in both the API Reference and Guides. Detailed retrieval tools (get-endpoint-info, get-endpoints, get-full-spec-document) are only available in the API Reference. See Enhancing Guide Access to configure the agent for full access to the Finix documentation.
The MCP server can search guides but lacks a tool to retrieve their full content. To give Gemini full access to both API docs and guides, add the following to your project's GEMINI.md file or system prompt:
## Finix Documentation Access
When answering questions about Finix:
1. Use the Finix MCP server tools (`search`, `get-endpoint-info`, `get-endpoints`) to find relevant API reference content.
2. For guide/tutorial content: after using the MCP `search` tool to find relevant guide pages, fetch the full content by appending `.md` to the guide URL. For example:
- `https://docs.finix.com/guides/getting-started/developer-quickstart.md`
- `https://docs.finix.com/guides/online-payments/payment-tokenization/tokenization-forms.md`
- `https://docs.finix.com/guides/payouts/adding-funds.md`
3. Always check both API Reference and Guides for a complete answer.This lets Gemini access Markdown guides and API references via MCP, ensuring full access to Finix docs.
After adding the MCP server, verify it is working:
gemini mcp listYou should see finix-redocly-mcp listed among configured servers.
Start a Gemini CLI session and ask a question about Finix:
geminiThen try a test prompt:
"What authentication method does the Finix API use?"
If Gemini responds with exact details about Finix API authentication (Basic Auth with API credentials), the connection is working.
"How do I onboard a seller on Finix?"
If Gemini responds with details from the seller onboarding guide (not just API endpoint info), guide access is working correctly.
To add the Finix MCP server only to a specific project, navigate to your project directory and run the gemini mcp add command:
cd /path/to/your/project
gemini mcp add --transport http finix-redocly-mcp https://docs.finix.com/mcp -s projectThis creates a .gemini/settings.json file in your project, making the MCP server available only in that directory.
To make the Finix MCP server available in all your projects:
gemini mcp add --transport http finix-redocly-mcp https://docs.finix.com/mcp -s userYou can manually edit your Gemini configuration file.
- Global location:
~/.gemini/settings.json - Project location:
.gemini/settings.json
Add the Finix MCP server to the mcpServers section:
{
"mcpServers": {
"finix-redocly-mcp": {
"httpUrl": "https://docs.finix.com/mcp"
}
}
}After editing, restart Gemini CLI to apply the changes.
Once configured, Gemini automatically uses the MCP server when you ask Finix-related questions.
API Questions:
"What fields are required to create a Transfer?" "How do I tokenize a card with Finix.js?" "What's the difference between a Transfer and an Authorization?"
Integration Help:
"Show me an example of processing a refund." "How do I set up webhooks for payment status updates?" "What are the steps to onboard a seller?"
Troubleshooting:
"What does error code 402 mean?" "What does the RETURNED state mean for a Transfer?" "How do I handle declined payments?"
For best results:
- Be specific - "How do I create a card Authorization?" works better than "How payments work?"
- Reference API resources - Utilize terms like "Transfer", "Authorization", "Identity", "Merchant" when relevant.
- Ask for examples - "Show me an example of..." prompts Gemini to pull code samples from documentation.
- Mention the environment - Specify "Sandbox" or "Production" if it matters for your question.
If gemini mcp list doesn't show finix-redocly-mcp:
Re-run the
gemini mcp addcommand:gemini mcp add --transport http finix-redocly-mcp https://docs.finix.com/mcpCheck that your configuration file exists and has valid JSON.
If Gemini reports connection issues:
- Check internet connection - Verify you can access docs.finix.com from a browser.
- Check firewall/proxy issues - Corporate networks may block MCP connections.
- Try removing and adding again:Reset Connection
gemini mcp remove finix-redocly-mcp gemini mcp add --transport http finix-redocly-mcp https://docs.finix.com/mcp
When starting a session, if Gemini shows:
"MCP issues detected. Run /mcp list for status."
Perform the following:
- Run
/mcp listinside the session to see detailed diagnostics. - Verify the MCP server URL is correct in your configuration.
- Check that docs.finix.com is reachable from your network.
If Gemini guesses instead of searching the documentation:
- Be explicit - Try "Search the Finix documentation for..." in the prompt.
- Check MCP is enabled - Run
gemini mcp listto verify the server is configured. - Restart Gemini CLI - A fresh session can help.
If Gemini answers with only API endpoint details and misses guide content:
- Add the
GEMINI.mdinstructions - See the Enhancing Guide Access section above to have Gemini fetch full Markdown files. - Ask explicitly - Try "Check the Finix guides for how to..." to prompt Gemini to search for guide content.
The MCP server uses Finix's published documentation. If you find any outdated information:
- Check docs.finix.com for the latest published documentation.
- If you notice a discrepancy, contact the Finix Support Team or your Finix representative for a definitive answer.
The MCP server always shows the latest information from docs.finix.com, which is updated regularly.
To disconnect Gemini CLI from the Finix MCP server:
gemini mcp remove finix-redocly-mcp