Direct Connection
Direct Connection
Connect directly to the Famasi MCP server without an agent wrapper. This is the most flexible option — you get full control over the MCP connection and can use it with any MCP-compatible client.
When to use
- You have your own MCP client implementation
- You want to embed Famasi in a custom tool
- You need programmatic access to the MCP protocol
- You’re building on top of Famasi
Quick setup
{ "mcpServers": { "famasi": { "url": "https://mcp.famasi.ai/mcp" } }}Authentication
For Individuals
- Request an OTP
- Verify the OTP
- Get your access token
// Request OTPawait mcp.request_patient_otp({ phone: "+2348012345678" });
// Verify OTPawait mcp.verify_patient_otp({ phone: "+2348012345678", otp: "123456"});
// Now you're authenticatedconst pharmacies = await mcp.find_nearby_pharmacy({ medication: "Amoxicillin"});For Providers
Use your provider API key:
{ "mcpServers": { "famasi": { "url": "https://mcp.famasi.ai/mcp", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } }}Available tools
Once connected, you get access to all 13 individual tools or 24 provider tools depending on your authentication.
See Individual Tools or Provider Tools for the full list.
Next steps
- Coding Agents — Use with Claude Code or Codex
- Cloud Platforms — Use with ChatGPT or Claude.ai
- Individual Tools — What you can do as an individual
- Provider Tools — What you can do as a provider