Skip to main content

MCP Duty Pharma helps you locate pharmacies legally required to stay open during nights, weekends, and holidays

Project description

MCP Duty Pharma

MCP Duty Pharma helps you locate pharmacies legally required to stay open during nights, weekends, and holidays. Whether it's an emergency or just a late-night need, this tool ensures you always know where to go.

📋 System Requirements

  • Python 3.10+

📦 Dependencies

Install all required dependencies:

# Using uv
uv sync

Required Packages

  • fastmcp: Framework for building Model Context Protocol servers
  • geoPy: Python library for accessing and geocoding/reverse geocoding locations.
  • httpx: HTTP client for Python, which provides a simple and intuitive API for making HTTP requests.

All dependencies are specified in pyproject.toml.

📑 Table of Contents

🛠️ MCP Tools

This MCP server provides the following tools to Large Language Models (LLMs):

get_nearby_duty_pharmacies

  • Get ten closest pharmacies on duty today, sorted by distance to the given address.

🚀 Getting Started

Clone the repository:

git clone https://github.com/lsaavedr/mcp-duty-pharma.git
cd mcp-duty-pharma

📦 Installation

You can install this MCP server in either Claude Desktop or elsewhere. To use this server, add the following configuration to the settings file:

  • in json format
{
  "MCP Duty Pharma": {
    "command": "uv",
    "args": ["tool", "run", "mcp_duty_pharma"]
  }
}
  • in yaml format
mcpServers:
  - name: MCP Duty Pharma
    command: uv
    args:
      - tool
      - run
      - mcp_duty_pharma

🔒 Safety Features

  • Rate Limiting: Each geocoding call is rate-limited (e.g., 1-second delay) to avoid excessive requests that violate usage limits.
  • Error Handling: Catches geopy exceptions (timeouts, service errors) and returns safe [] results instead of crashing.

📚 Development Documentation

If you’d like to extend or modify this server:

  • Check duty-pharma.py for how each tool is implemented and how duty-pharma is integrated.
  • Look at geopy’s official docs for advanced usage like bounding boxes, language settings, or advanced data extraction.
  • Look at regional government APIs for more data sources.

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_duty_pharma-0.1.17.tar.gz (55.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_duty_pharma-0.1.17-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_duty_pharma-0.1.17.tar.gz.

File metadata

  • Download URL: mcp_duty_pharma-0.1.17.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcp_duty_pharma-0.1.17.tar.gz
Algorithm Hash digest
SHA256 81650b11b61a07c37aacc45da7a11b5a1feccdebc04f1ddaae83c4c6a76e2145
MD5 471b038f65ea96d5d069f4e4f2ee9c28
BLAKE2b-256 5aaa39d6a8e771118f3ccd170b469f9733bdc246c2a6648efb688b51aeccd6d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_duty_pharma-0.1.17.tar.gz:

Publisher: python-publish.yml on lsaavedr/mcp-duty-pharma

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_duty_pharma-0.1.17-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_duty_pharma-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 a937b6fad26fb824dd9dca13d67f128d6a7266dee6709260271f2ac748ac210f
MD5 47e8c33139c84fa731983c8672451118
BLAKE2b-256 f84422f27adff112631cd5d704dc62666e725c1b44ed822dc6d176212c15a9a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_duty_pharma-0.1.17-py3-none-any.whl:

Publisher: python-publish.yml on lsaavedr/mcp-duty-pharma

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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