Skip to main content

mcp-server-pp

MCP server for PharmaPendium data extraction — converts extraction results to XLSX, expands drug/concomitant rows, and uploads to Azure Blob Storage.

Tools

save_extraction

Converts a JSON array of extraction results into an XLSX file, uploads it to Azure Blob Storage, and returns a download URL (valid 7 days).

If the user provided corrections or new rules during the extraction session, pass them in notes — they are saved as a separate Notes sheet inside the XLSX for traceability.

Parameters:

  • json_data (required): JSON array string — extraction results, one object per row
  • file_name (optional): Output filename (with or without .xlsx). Defaults to extraction_results.xlsx
  • notes (optional): User corrections, comments, or new rules applied in this session

expand_concomitants

Takes a JSON array of rows (from the built-in Excel tool) with Drug Name and Concomitants columns and rotates each drug into the title slot. The Concomitants cell is parsed as CT-style free text: drugs separated by ;, each entry shaped as Name (aliases), route, dose, dose_comment, duration. For each input row, emits N+1 rows — the promoted drug's parsed metadata populates Drug Name, Route, Dose/Concentration, Dose Comment, and Treatment Duration; the displaced drugs are re-serialized back into Concomitants. All other columns are copied unchanged. Semicolons inside (...) and semicolons followed by non-drug continuations (digits, or/and, bare units) are preserved within a single drug's metadata; bare-name segments at the start of a chunk are merged as combination-drug components (e.g. Elexacaftor; Tezacaftor; Ivacaftor (ELX; TEZ; IVA), orally, ... stays one entry).

Parameters:

  • json_data (required): JSON array string of row objects — read via the built-in Excel tool
  • file_name (optional): Output filename (with or without .xlsx). Defaults to expanded_results.xlsx

Example — one source row becomes three:

Drug Name Route Dose/Concentration Concomitants
DrugA oral 10 mg DrugB, i.v., 5 mg, daily; DrugC, oral, 20 mg, twice daily

Drug Name Route Dose/Concentration Concomitants
DrugA oral 10 mg DrugB, i.v., 5 mg, daily; DrugC, oral, 20 mg, twice daily
DrugB i.v. 5 mg DrugA, oral, 10 mg; DrugC, oral, 20 mg, twice daily
DrugC oral 20 mg DrugA, oral, 10 mg; DrugB, i.v., 5 mg, daily

Required environment variable: AZURE_STORAGE_CONNECTION_STRING

Usage

With uvx (no installation needed)

uvx mcp-server-pp@1.2.0

MCP client config (e.g. Codemie, Claude Desktop)

{
  "mcpServers": {
    "pp-tools": {
      "command": "uvx",
      "args": ["mcp-server-pp@1.2.0"],
      "env": {
        "AZURE_STORAGE_CONNECTION_STRING": "${AZURE_STORAGE_CONNECTION_STRING}"
      }
    }
  }
}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_pp-1.2.1.tar.gz (72.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_pp-1.2.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_pp-1.2.1.tar.gz.

File metadata

  • Download URL: mcp_server_pp-1.2.1.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mcp_server_pp-1.2.1.tar.gz
Algorithm Hash digest
SHA256 0210512f42b633a0805b1449bcb89fb590bc05e0bc6cb529816c6b741507fd00
MD5 46d4c9c19649e29687acbc154c94a9d6
BLAKE2b-256 83029f414f85003178a348ca25ba55ff52a78a5e77800a75c4b166509b1adda7

See more details on using hashes here.

File details

Details for the file mcp_server_pp-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_server_pp-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mcp_server_pp-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f4c874c865e66bbf1017b4d82ad665671fa0def70da1f7d2a69d8babef8c057
MD5 36b375e3fe9dc8ae7fdeadf71b34d33c
BLAKE2b-256 e6f4997de7faa8cf8bd47f9211f38d1383432bd5aead1c944d2c1c9f2347f4e1

See more details on using hashes here.

Release history Release notifications | RSS feed

1.3.0

2 files

This release

1.2.1 This release

2 files

1.2.0

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page