Skip to main content

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

Project description

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 an XLSX file with Drug Name and Concomitants columns, expands each row so every drug in the combined list gets its own row (rotating through the Drug Name slot while the rest fill Concomitants), uploads the result to Azure Blob Storage, and returns a download URL (valid 7 days).

Parameters:

  • xlsx_base64 (required): Base64-encoded XLSX file content
  • file_name (optional): Output filename (with or without .xlsx). Defaults to expanded_results.xlsx

Example — one source row becomes three:

Drug Name Concomitants
DrugA DrugB, DrugC

Drug Name Concomitants
DrugA DrugB, DrugC
DrugB DrugA, DrugC
DrugC DrugA, DrugB

Required environment variable: AZURE_STORAGE_CONNECTION_STRING

Usage

With uvx (no installation needed)

uvx mcp-server-pp@1.1.3

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

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

Project details


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.1.4.tar.gz (68.7 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.1.4-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_pp-1.1.4.tar.gz
  • Upload date:
  • Size: 68.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.23

File hashes

Hashes for mcp_server_pp-1.1.4.tar.gz
Algorithm Hash digest
SHA256 cd664005f24f447d28d1e1a6fb47f225559324afa12cf850e7f0f0848ca02646
MD5 b4b79675a4e31ce94056de272ec3d4e6
BLAKE2b-256 244c0e2c79d77a0298307d03b873e2f45815a77d7bcda2ee6afe0d084a71c7a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_pp-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a0f94ac5a9a3eafa2ef4c0c450cee5c39f6a4a5972fddc7d284ebe5a84bf1e28
MD5 d80b0580c89d8e66cd6c295d4ddd4869
BLAKE2b-256 b983721ae9920a20b99f4c08d8af38051c9bd6de7dd036318d01c1ae8d66ce3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page