For AI Developers
Works with Claude, Gemini, OpenAI, Perplexity, Grok, and any AI that can call a REST API.
Use ClixRx inside Claude
On claude.ai web or Claude Desktop, add https://mcp.clixrx.com/mcp under Settings → Connectors → Add custom connector — adding directly on mobile is still in beta, so web or Desktop is the preferred path; it syncs to your phone automatically once added. For hosts that take a JSON config with remote MCP support, use:
{
"mcpServers": {
"clixrx": {
"url": "https://mcp.clixrx.com/mcp"
}
}
}For stdio-only hosts, bridge to the same hosted endpoint with mcp-remote:
{
"mcpServers": {
"clixrx": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.clixrx.com/mcp"]
}
}
}Compatible with Claude (web, mobile, Desktop), Claude Code, Cursor, Windsurf, and any MCP-enabled host. No API key required.
Query our public API directly
The REST API is fully public for drug search and pricing lookups. No auth required for anonymous endpoints.
curl -G https://api.clixrx.com/api/v1/drugs/search \
--data-urlencode "q=lisinopril 10mg" \
--data-urlencode "zip=90210"Rate limited to 100 req / 15 min per IP. Price lookups are gated at 20 req / 60 min.
Example AI prompts
"Find the cheapest Lisinopril 10mg near 10001 and explain the top three options."
The assistant should search drug prices, compare pharmacies, and summarize tradeoffs.
"Compare Metformin 500mg cash prices to my $25 insurance copay near 78701."
Useful for deciding whether to use a discount coupon or insurance.
"Create a coupon after I pick the pharmacy with the best price."
Coupons are minted only after a pharmacy is selected.
OpenAPI Spec
Full OpenAPI 3.1 document covering all endpoints. Import it directly into Postman, Insomnia, or any OpenAPI-compatible tool.
https://api.clixrx.com/api/openapi.jsonWhy ClixRx for AI?
- 60,000+ pharmacy network
- Zero user sign-up required
- One BIN/PCN/Group per coupon — no aggregator card-shuffling
- MCP-native from day one
- Cached and rate-limit friendly
Use with Google Gemini
Load our Gemini-native FunctionDeclaration schema and pass it directly to a supported Gemini model for function-calling workflows.
import google.generativeai as genai
import requests
# Load ClixRx tool definitions in Gemini format
tools_resp = requests.get("https://api.clixrx.com/api/v1/gemini/tools").json()
tools = tools_resp["tools"] # list of functionDeclarations
model = genai.GenerativeModel(
"gemini-2.5-flash",
tools=tools,
)
# Ask Gemini to look up prices using ClixRx tools
chat = model.start_chat()
result = chat.send_message("Cheapest lisinopril 10mg near 10001?")
print(result.text)Compatible with Gemini and Vertex AI function-calling workflows.
Use with OpenAI / ChatGPT
Load our OpenAI-compatible tool definitions from /api/v1/openai/tools and pass them directly to a supported function-calling model.
import openai, requests
# Fetch the ClixRx tool definitions
tools = requests.get("https://api.clixrx.com/api/v1/openai/tools").json()["tools"]
client = openai.OpenAI()
response = client.chat.completions.create(
model="gpt-4o",
tools=tools,
messages=[{"role": "user", "content": "Cheapest metformin 500mg near 10001?"}]
)
print(response.choices[0].message.tool_calls)Compatible with OpenAI function-calling models.
Use with Perplexity
Perplexity uses OpenAI-compatible function calling. Fetch our tool definitions from the endpoint below, then point Perplexity at /api/v1/openai/invoke to call our tools.
import requests
# 1. Fetch ClixRx tools in OpenAI-compatible format
tools = requests.get("https://api.clixrx.com/api/v1/perplexity/tools").json()["tools"]
# 2. Use with Perplexity (OpenAI-compatible function calling)
import openai
client = openai.OpenAI(
api_key="YOUR_PERPLEXITY_KEY",
base_url="https://api.perplexity.ai"
)
response = client.chat.completions.create(
model="sonar-pro",
messages=[{"role": "user", "content": "Cheapest lisinopril 10mg near 10001?"}],
tools=tools
)
# Call ClixRx invoke endpoint with the tool call
tool_call = response.choices[0].message.tool_calls[0]
result = requests.post(
"https://api.clixrx.com/api/v1/openai/invoke",
json={"name": tool_call.function.name, "arguments": tool_call.function.arguments}
).json()
print(result)Compatible with Perplexity's OpenAI-compatible Sonar models.
Use with xAI Grok
Grok uses OpenAI-compatible function calling. Use /api/v1/openai/tools to fetch tool definitions and /api/v1/openai/invoke to execute them.
import openai, requests
# Grok uses OpenAI-compatible function calling
# Load ClixRx tools from the OpenAI-compatible endpoint
tools = requests.get(
"https://api.clixrx.com/api/v1/openai/tools"
).json()["tools"]
client = openai.OpenAI(
api_key="YOUR_XAI_KEY",
base_url="https://api.x.ai/v1"
)
response = client.chat.completions.create(
model="grok-3",
messages=[{"role": "user", "content": "Cheapest omeprazole 20mg near 77001?"}],
tools=tools
)
# Execute the tool call via ClixRx invoke endpoint
tool_call = response.choices[0].message.tool_calls[0]
result = requests.post(
"https://api.clixrx.com/api/v1/openai/invoke",
json={"name": tool_call.function.name, "arguments": tool_call.function.arguments}
).json()
print(result)Compatible with xAI Grok models via OpenAI-compatible function calling.
ClixRx is a discount code lookup tool. We do not provide prescriptions, medical advice, or pharmacy services. Always consult your doctor or pharmacist.