This repository contains a simple MCP server for managing blood pressure readings in Open WebUI, or other tools that can use MCP. It allows users to create, read, update, and delete blood pressure records.
Before using bptool, set up the postgresql database, for example:
psql -h dbserver -U dbadmin bptool_db <create_schema.sqlTo work with Open WebUI, bptool needs to be started by mcpo:
git clone https://github.com/mclarkson/bptool.git
cd bptool
cp env.sample .env
# Edit .env with database details
uvx --with psycopg2-binary --with . mcpo --port 8000 -- python -m bptool.api# Ensure `.env` is correct and in the current directory
python -m venv venv
. venv/bin/activate
pip install -e .
mcpo --port 8000 -- python -m bptool.apipip install -e .# Help
bptool -h
# Create a reading
bptool create --systolic 120 --diastolic 80 --notes "Feeling well"
# Read recent readings
bptool read --limit 5- Admin Panel -> Settings -> External Tools -> Add Connection
- Type = 'OpenAPI'
- URL = 'http://<IP_or_name_of_host>:8000'
- Auth = 'Bearer'
- To match mcpo
--api-keysetting, or none if not set.
- To match mcpo
- Add code for saving data as the user, not default_user.
Add the prompt.
