Pharmaceutical Benefits Scheme (PBS) MCP AI Enabled API Server
by Matthew Cage
A standalone Model Context Protocol (MCP) server for accessing the Australian Pharmaceutical Benefits Scheme (PBS) API. It allows AI models to easily integrate PBS data into their workflows.
Last updated: N/A
What is Pharmaceutical Benefits Scheme (PBS) MCP AI Enabled API Server?
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. It supports both HTTP and CLI access.
How to use Pharmaceutical Benefits Scheme (PBS) MCP AI Enabled API Server?
The server can be used in stdio, HTTP with SSE support, or as a command-line tool. Installation involves cloning the repository, installing dependencies, and building the project. Usage examples are provided for each mode, including client configuration and example LLM prompts.
Key features of Pharmaceutical Benefits Scheme (PBS) MCP AI Enabled API Server
Provides tools for querying the PBS API endpoints
Supports both stdio and HTTP/SSE transport layers
Comprehensive error handling for API rate limits and authentication issues
Receives tool calls and prompts directly from LLM components
Use cases of Pharmaceutical Benefits Scheme (PBS) MCP AI Enabled API Server
Integrating PBS data into AI workflows
Enabling AI assistants to access up-to-date PBS information
Querying medicine listings, pricing, and availability
Accessing PBS data programmatically via HTTP or CLI
FAQ from Pharmaceutical Benefits Scheme (PBS) MCP AI Enabled API Server
How do I obtain a PBS API subscription key?
How do I obtain a PBS API subscription key?
Visit the PBS Data API Portal, create an account, subscribe to the PBS API, and retrieve your subscription key from your profile.
What are the limitations of the PBS Public API?
What are the limitations of the PBS Public API?
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.
What transport layers are supported?
What transport layers are supported?
The server supports both stdio and HTTP/SSE transport layers.
How do I start the server in HTTP mode?
How do I start the server in HTTP mode?
Use the command npm run start:http
or the provided start script ./start.sh http 3000
, where 3000 is the port number.
How can I use the server as a command-line tool?
How can I use the server as a command-line tool?
Build the project using npm run build
and then run the CLI with the desired command using npm run cli -- <command>
or ./start.sh cli <command>
.