Build with PillClaw API

RESTful API + MCP Server to integrate medication management into any workflow

API Overview

PillClaw provides a RESTful API with Bearer Token authentication. All requests and responses are in JSON format.

Base URL

https://your-domain/api/v1

Quick Start

1

Create an API Key in Settings > API Keys

2

Call the API with a Bearer Token

Example Request

curl https://your-domain/api/v1/profiles \
  -H "Authorization: Bearer pill_your_api_key"

API Endpoints

MethodEndpointDescription
GET/api/v1/profilesList all profiles
POST/api/v1/profilesCreate a profile
GET/api/v1/medicationsList medications
POST/api/v1/medicationsAdd a medication
POST/api/v1/logsLog medication intake
GET/api/v1/reminders/todayToday's reminders
GET/api/v1/reminders/currentCurrently due medications
GET/api/v1/statsStatistics (with adherence trends, missed time analysis, refill alerts, streaks)
GET/api/v1/overviewFamily overview (all profiles + today status + stats + alerts in one call)
GET/api/v1/profiles/:id/summarySingle profile complete summary

MCP Server Integration

Integrate PillClaw with Claude and other AI assistants via MCP (Model Context Protocol).

Install

npx pillclaw-mcp

Environment Variables

PILLPAL_API_KEY=pill_your_api_key

Claude Desktop Configuration

{
  "mcpServers": {
    "pillpal": {
      "command": "npx",
      "args": ["-y", "pillclaw-mcp"],
      "env": {
        "PILLPAL_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Supported Tools (12)

list_profilescreate_profilelist_medicationscreate_medicationupdate_medicationrefill_medicationlog_medicationget_today_remindersget_current_remindersget_statsget_family_overviewget_profile_summary

Scopes

When creating an API Key, you can select the following scopes to restrict access:

ScopeDescription
profiles:readRead profile information
profiles:writeCreate, edit, delete profiles
medications:readRead medication information
medications:writeAdd, edit, delete medications
logs:readRead medication logs
logs:writeCreate, edit medication logs
stats:readRead statistics

Rate Limits

FreeFree: 50/day
ProPro: 5,000/day

Requests exceeding the limit will receive a 429 status code. Upgrade to Pro for higher quotas.

Ready to get started?

Create a free account, get your API Key, and start integrating now.