π¦
server
SafeRx Drug Safety API β Model Context Protocol Server
0 installs
Trust: 39 β Low
Ai
Installation
npx @saferx_pharma/mcp-serverAsk AI about server
Powered by Claude Β· Grounded in docs
I know everything about server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
SafeRx Pharma
Drug safety intelligence for Egyptian pharmaceutical products. One API call, six safety domains, 66,000+ products.
What's Here
SafeRx_Pharma/
βββ openapi/ # OpenAPI 3.1.1 spec (source of truth)
β βββ drug-safety-v1.yaml # ~2000 lines, fully typed
βββ mcp-server/ # MCP server for AI assistants
β βββ src/index.ts # Published: @saferx_pharma/mcp-server
βββ fern/ # Fern docs + SDK generation config
β βββ docs.yml # docs.saferx.online (29 pages)
β βββ docs/ # Documentation content (MDX)
β βββ generators.yml # SDK generators (Python, TS, C#, Java, Go, Swift)
β βββ apis/ # API definitions per SDK
βββ postman/ # Postman collection (8 requests)
βββ LICENSE # MIT
Quick Start
Get a Free API Key
# Step 1: Request verification code
curl -X POST https://saferx.online/api/developers/keys/free \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'
# Step 2: Verify with the 6-digit code from your email
curl -X POST https://saferx.online/api/developers/keys/free/verify \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "code": "123456"}'
Check Drug Safety
curl -X POST https://saferx.online/api/drug_safety/check \
-H "X-SafeRx-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-H "User-Agent: MyApp/1.0" \
-d '{"drugs": ["Augmentin 1g", "Marivan", "Glucophage 500"]}'
Returns safety data across all 6 domains in ~40ms.
SDKs
| Language | Package | Install |
|---|---|---|
| Python | saferx-pharma | pip install saferx-pharma |
| TypeScript | saferx-pharma-sdk | npm install saferx-pharma-sdk |
| C# | SafeRx | dotnet add package SafeRx |
from saferx import SafeRxClient
client = SafeRxClient(api_key="sfx_free_...")
result = client.drug_safety.check(drugs=["Augmentin 1g", "Marivan"])
import { SafeRxClient } from "saferx-pharma-sdk";
const client = new SafeRxClient({ apiKey: "sfx_free_..." });
const result = await client.drugSafety.check({ drugs: ["Augmentin 1g", "Marivan"] });
MCP Server
For AI assistants (Claude Desktop, Claude Code, Cursor):
npx @saferx_pharma/mcp-server
Requires SAFERX_API_KEY environment variable. See mcp-server/README.md for configuration details.
Safety Domains
| Domain | Code | Coverage |
|---|---|---|
| Adverse Effects | ae | 920K+ effects, Black Box Warnings |
| Drug Interactions | ddi | 337K+ interaction pairs |
| Pregnancy & Lactation | pllr | 24K+ products, 0-7 risk scale |
| Food Interactions | food | 38K+ interactions |
| Clinical Considerations | clinical | 5 populations, 14 conditions |
| Dosing | dose | 19K+ products, dual-source |
API Tiers
| Free | Pro | Enterprise | |
|---|---|---|---|
| Requests/min | 20 | 60 | Custom |
| Requests/day | 60 | 500 | Custom |
| Max drugs/request | 20 | 20 | 50 |
| Auth | API Key | API Key | API Key |
| Database | Full (66,659 products) | Full | Full |
| Support | Priority | Dedicated |
Documentation
- API Reference β Interactive endpoint docs
- Integration Guides β Pharmacy, Hospital EHR, POS, Mobile, AI Agent
- OpenAPI Spec β Machine-readable API definition
- Postman Collection β Import and test in seconds
Links
- Website: saferx.online
- Developer Portal: saferx.online/developer.html
- Releases: github.com/KaRamHelal/SafeRx_Pharma/releases/latest
- npm: @saferx_pharma/mcp-server
- Status: saferx.instatus.com
- Support: support@saferx.online
License
MIT
