PBS MCP AI Enabled API Server

PBS MCP AI Enabled API Server

pbs-mcp-server•bymatthewdcage

A standalone Model Context Protocol server that lets AI models query the Australian Pharmaceutical Benefits Scheme API for medicines, pricing, and availability data.

License: MIT License•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides MCP tools for querying PBS API endpoints to retrieve pharmaceutical data.
  • •Supports stdio and HTTP/SSE transport layers.
  • •Translates natural language prompts like medication lookups into PBS API calls and returns structured data.
  • •Exposes a configurable tool with endpoint, method, query parameters, subscription key, and timeout options.

BEST FOR

  • •AI assistants needing up-to-date Australian PBS medicine and pricing information.
  • •Querying PBS prescriber and item overview data with filters like PBS code and latest schedule.
  • •Command-line querying of PBS API endpoints.

ABOUT PBS-MCP-SERVER

PBS MCP AI Enabled API Server is cataloged as an MCP server attributed to matthewdcage. A standalone Model Context Protocol server that lets AI models query the Australian Pharmaceutical Benefits Scheme API for medicines, pricing, and availability data. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for PBS MCP AI Enabled API Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What rate limits apply to the PBS Public API?

The public API is rate-limited to one request per 20 seconds, shared among all users, and only current and past 12 months of schedules are available.

Does the server support custom subscription keys?

Yes, a custom subscription key can be provided; otherwise the default public key is used.

上游原版 README

在 GitHub 查看同一版本原文

README.md · a572dbd63fc3 · 采集于 2026-11-13 10:36:19 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Pharmaceutical Benefits Scheme (PBS) MCP AI Enabled API Server MCP Server

A standalone Model Context Protocol (MCP) server for accessing the Australian Pharmaceutical Benefits Scheme (PBS) API.

About the Author

This PBS MCP server was developed by [Matthew Cage], Founder of https://ai-advantage.au, specialist in Automation, AI Engineering and AI integration and healthcare data systems.

Collaborate with me: https://www.linkedin.com/in/digitalmarketingstrategyexpert/

Overview

This project provides a standalone MCP server that allows AI models to access the Australian Pharmaceutical Benefits Scheme (PBS) API, which contains information about medicines, pricing, and availability in Australia.

The project is built for the Public API, but can easily be adapted to the private API if you have been granted developer access.

The PBS API provides programmatic access to PBS data, including medicine listings, pricing, and availability. This MCP server makes it easy to integrate PBS data into AI workflows.

The MCP is available via HTTP and CLI.

Please be aware of the rate limits for the PBS and adjust your request frequency. I recommend a periodic call to store the information you require from the API and update it on a weekly basis.

MCP Server Features MCP Server

This MCP server implements the following Model Context Protocol features:

  • Tools: Provides tools for querying the PBS API endpoints, allowing AI models to access pharmaceutical data
  • Transport Layers: Supports both stdio and HTTP/SSE transport layers
  • Error Handling: Comprehensive error handling for API rate limits and authentication issues
  • LLM Integration: Receives tool calls and prompts directly from LLM components, enabling seamless AI interaction with PBS data

How It Works

The MCP Client MCP Client:

  1. Receives Tool Calls: When an LLM (like Claude) needs pharmaceutical data, it sends a tool call to this server
  2. Processes Prompts: Interprets natural language prompts about medication information
  3. Executes API Queries: Translates the requests into appropriate PBS API calls
  4. Returns Structured Data: Sends back formatted pharmaceutical data that the LLM can use in its responses

This enables AI assistants to access up-to-date PBS information without needing to have this data in their training.

Installation

  1. Clone this repository:

    git clone <repository-url>
    cd pbs-mcp-standalone
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Usage

Starting the Server MCP Server

The PBS MCP server can be run in different modes:

Stdio Mode (Default)

This mode is compatible with the MCP protocol and communicates via standard input/output streams:

npm start

Or use the provided start script:

./start.sh

HTTP Mode with SSE Support

This mode starts an HTTP server with Server-Sent Events (SSE) support:

npm run start:http

Or use the provided start script:

./start.sh http 3000

Where 3000 is the port number to listen on.

Command-Line Interface

The PBS MCP server can also be used as a command-line tool:

npm run cli -- <command>

Or use the provided start script:

./start.sh cli <command>

For example:

./start.sh cli info

Using as a Command-Line Tool

To use this MCP server as a command-line tool:

  1. Build the project:

    npm run build
    
  2. Run the CLI with the desired command:

    npm run cli -- <command>
    

    Or use the start script:

    ./start.sh cli <command>
    

Integrating with MCP Clients MCP Client

This server can be integrated with any MCP-compatible client, such as:

  • Local AI Editors and AI/LLM Servers
  • Other AI assistants that support the Model Context Protocol
  • Custom applications using the MCP client libraries

Client Configuration Example

Here's an example of how to configure this server with an MCP client:

{
  "mcpServers": {
    "pbs-api": {
      "command": "node",
      "args": ["path/to/pbs-mcp-standalone/build/index.js"],
      "env": {
        "PBS_API_SUBSCRIPTION_KEY": "your-subscription-key-here"
      }
    }
  }
}

Accessing the Server from a Client

To access this MCP server from a client:

  1. For Claude Desktop or other MCP-compatible AI assistants:

    • Configure the assistant to use this server as an MCP tool provider
    • The assistant will automatically discover and use the tools provided by this server
    • The LLM can send natural language prompts about medications that will be processed by the server
  2. For custom applications:

    • Use the HTTP API endpoints described below
    • Connect to the SSE endpoint for real-time tool events
    • Or spawn the server process and communicate via stdin/stdout

Example LLM Prompts

The server can interpret various prompts from LLMs, such as:

"Find information about metformin in the PBS"
"What is the PBS code for insulin?"
"List all prescribers who can prescribe antibiotics"
"Get the latest pricing for asthma medications"

These natural language prompts are translated into appropriate PBS API calls.

API Tool Parameters

The PBS API tool can be used with the following parameters:

{
  "endpoint": "prescribers",
  "method": "GET",
  "params": {
    "get_latest_schedule_only": "true",
    "limit": "20"
  }
}

Parameters

  • endpoint (string, required): The specific PBS API endpoint to access (e.g., "prescribers", "item-overview")
  • method (string, optional): HTTP method to use (GET is recommended for most PBS API operations). Default: "GET"
  • params (object, optional): Query parameters to include in the request
  • subscriptionKey (string, optional): Custom subscription key. If not provided, the default public key will be used
  • timeout (number, optional): Request timeout in milliseconds. Default: 30000

HTTP API MCP Server

When running in HTTP mode, the following endpoints are available:

Health Check

GET /health

Returns the status of the server.

List Tools

GET /tools

Returns a list of available tools.

SSE Endpoint

GET /sse

Establishes an SSE connection and sends tool events.

Tool Invocation (SSE)

POST /sse/:toolName

Invokes a tool and sends the result via SSE.

Tool Invocation (REST)

POST /api/:toolName

Invokes a tool and returns the result as JSON.

Command-Line Interface MCP Dev

The PBS MCP server can be used as a command-line tool with the following commands:

List Endpoints

./start.sh cli list-endpoints

Lists all available PBS API endpoints.

Get API Information

./start.sh cli info

Returns information about the PBS API.

Query Prescribers

./start.sh cli prescribers [options]

Options:

  • -l, --limit <number>: Number of results per page (default: 10)
  • -p, --page <number>: Page number (default: 1)
  • -c, --pbs-code <code>: Filter by PBS code
  • -s, --schedule-code <code>: Filter by schedule code
  • -t, --prescriber-type <type>: Filter by prescriber type
  • -f, --fields <fields>: Specific fields to return
  • --latest: Get only the latest schedule

Query Item Overview

./start.sh cli item-overview [options]

Options:

  • -l, --limit <number>: Number of results per page (default: 10)
  • -p, --page <number>: Page number (default: 1)
  • -s, --schedule-code <code>: Filter by schedule code
  • -f, --fields <fields>: Specific fields to return
  • --latest: Get only the latest schedule

Query Any Endpoint

./start.sh cli query <endpoint> [options]

Options:

  • -m, --method <method>: HTTP method (default: GET)
  • -p, --params <json>: Query parameters as JSON string
  • -k, --subscription-key <key>: Custom subscription key
  • -t, --timeout <milliseconds>: Request timeout in milliseconds

Start HTTP Server

./start.sh cli serve [options]

Options:

  • -p, --port <number>: Port to listen on (default: 3000)

Available Endpoints

The PBS API provides several endpoints for accessing different types of data:

  • / - Root endpoint, provides API information and changelog
  • /prescribers - Information about prescribers
  • /item-overview - Detailed information about PBS items
  • /items - Basic information about PBS items
  • /schedules - Information about PBS schedules
  • /atc-codes - Anatomical Therapeutic Chemical (ATC) classification codes
  • /organisations - Information about organisations
  • /restrictions - Information about restrictions
  • /parameters - Information about parameters
  • /criteria - Information about criteria
  • /copayments - Information about copayments
  • /fees - Information about fees
  • /markup-bands - Information about markup bands
  • /programs - Information about programs
  • /summary-of-changes - Summary of changes

For a complete list of endpoints, see the PBS API documentation.

Example Usage

Get API Information

{
  "endpoint": ""
}

Get Prescribers

{
  "endpoint": "prescribers",
  "params": {
    "get_latest_schedule_only": "true",
    "limit": "10"
  }
}

Get Item Overview with Latest Schedule

{
  "endpoint": "item-overview",
  "params": {
    "get_latest_schedule_only": "true",
    "limit": "5"
  }
}

Get Prescribers with Specific PBS Code

{
  "endpoint": "prescribers",
  "params": {
    "pbs_code": "10001J",
    "get_latest_schedule_only": "true"
  }
}

Authentication

The tool uses a subscription key for accessing the PBS API. You can obtain your own key by registering on the PBS Developer Portal.

For development purposes, see the .env.example file for configuration details.

Obtaining a PBS API Subscription Key

To obtain your own PBS API subscription key, follow these steps:

  1. Visit the PBS Data API Portal:

  2. Create an Account:

    • Click on "Sign Up" to create a new account
    • Fill in your details and verify your email address
  3. Subscribe to the PBS API:

    • Once logged in, navigate to the "Products" section
    • Select the "PBS Public API v3" product
    • Click "Subscribe" to request access to the API
  4. Retrieve Your Subscription Key:

    • After your subscription is approved, go to your profile
    • Navigate to "Subscriptions" or "API Keys" section
    • Copy your primary or secondary key
  5. Configure Your Environment:

    • Create a .env file based on the .env.example template
    • Replace your-subscription-key-here with your actual subscription key:
      PBS_API_SUBSCRIPTION_KEY=your-actual-subscription-key
      

Note: The PBS Public API is rate-limited to one request per 20 seconds. This limit is shared among all users of the public API. For higher rate limits or access to embargo data (future schedules), you may need to apply for special access through the PBS Developer Program.

Limitations

  • The PBS Public API is rate-limited to one request per 20 seconds (shared among all users)
  • Only the current schedule and those published in the past 12 months are available via the Public API
  • Some endpoints require specific parameters to be provided
  • The API structure and endpoints may change over time

Additional Resources

License

This project is licensed under the MIT License - see the LICENSE file for details.


MCP Server MCP Client MCP Dev MCP Enabled ❤️

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for PBS MCP AI Enabled API Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/pbs-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research