Skip to content

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

  1. Request an OTP
  2. Verify the OTP
  3. Get your access token
// Request OTP
await mcp.request_patient_otp({ phone: "+2348012345678" });
// Verify OTP
await mcp.verify_patient_otp({
phone: "+2348012345678",
otp: "123456"
});
// Now you're authenticated
const 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