MCP Duty Pharma
MCP 值班制药公司
MCP Duty Pharma 帮您找到依法在夜间、周末和节假日营业的药店。无论是紧急情况还是深夜需要,这款工具都能确保您随时知道该去哪里。
📋 系统要求
Python 3.10+
Related MCP server: Hong Kong Health Data MCP Server
📦依赖项
安装所有必需的依赖项:
# Using uv
uv sync所需软件包
fastmcp :构建模型上下文协议服务器的框架
geoPy :用于访问和地理编码/反向地理编码位置的 Python 库。
httpx :Python 的 HTTP 客户端,它提供了一个简单直观的 API 来发出 HTTP 请求。
所有依赖项均在pyproject.toml中指定。
📑 目录
🛠️ MCP 工具
该 MCP 服务器为大型语言模型 (LLM) 提供以下工具:
获取附近的值班药房
获取今天最近的十家值班药店,按与指定地址的距离排序。
🚀 入门
克隆存储库:
git clone https://github.com/lsaavedr/mcp-duty-pharma.git
cd mcp-duty-pharma📦安装
您可以在 Claude Desktop 或其他任何地方安装此 MCP 服务器。要使用此服务器,请在设置文件中添加以下配置:
json 格式
{
"MCP Duty Pharma": {
"command": "uv",
"args": ["tool", "run", "mcp_duty_pharma"]
}
}yaml 格式
mcpServers:
- name: MCP Duty Pharma
command: uv
args:
- tool
- run
- mcp_duty_pharma🔒 安全功能
速率限制:每个地理编码调用都有速率限制(例如,1 秒延迟),以避免违反使用限制的过多请求。
错误处理:捕获 geopy 异常(超时、服务错误)并返回安全的 [] 结果而不是崩溃。
📚 开发文档
如果您想扩展或修改此服务器:
检查 duty-pharma.py 了解每个工具是如何实现的以及 duty-pharma 是如何集成的。
查看 geopy 的官方文档以了解高级用法,如边界框、语言设置或高级数据提取。
查看区域政府 API 以获取更多数据源。
Available Tools
1 toolget_nearby_duty_pharmaciesB
Get ten closest pharmacies on duty today, sorted by distance to the given address.
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. While it mentions the tool returns 'ten closest pharmacies' and sorts by distance, it fails to describe critical behaviors such as response format, error handling, data freshness, rate limits, or authentication requirements. For a location-based query tool with zero annotation coverage, this leaves significant gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that efficiently conveys the core functionality: action, resource, quantity, constraints, and sorting. Every word earns its place with no redundancy or fluff, making it easy to parse and front-loaded with essential information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (location-based query with filtering), lack of annotations, and no output schema, the description is minimally complete. It covers the basic purpose and parameter intent but omits details on output structure, error cases, and operational constraints. It meets the bare minimum for understanding what the tool does but not how it behaves fully.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0% description coverage, so the description must compensate. It adds meaning by explaining that the 'address' parameter is used to calculate distance and filter results, which goes beyond the schema's bare 'Address' title. However, it doesn't specify address format requirements, validation rules, or handling of ambiguous inputs, leaving some semantic gaps.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Get ten closest pharmacies on duty today, sorted by distance to the given address.' It specifies the verb ('Get'), resource ('pharmacies'), and key constraints ('ten closest', 'on duty today', 'sorted by distance'). However, with no sibling tools mentioned, it cannot demonstrate differentiation from alternatives.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no explicit guidance on when to use this tool versus alternatives. It implies usage for finding nearby duty pharmacies but offers no information about prerequisites, limitations, or scenarios where other tools might be more appropriate. With no siblings listed, this is a missed opportunity for basic context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.0- First observed
get_nearby_duty_pharmacies
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined and distinct by default.
A single tool inherently has perfect naming consistency, as there are no other tools to compare against. The tool name follows a clear verb_noun pattern (get_nearby_duty_pharmacies).
One tool is too few for a server with a domain like pharmacy duty information, as it lacks essential operations such as filtering by time, getting pharmacy details, or updating duty status. This severely limits agent functionality.
The tool surface is severely incomplete for the domain; it only provides a list of nearby duty pharmacies without supporting operations like checking specific pharmacy hours, verifying duty status, or managing pharmacy data, leading to significant gaps in agent workflows.
Maintenance
Related MCP Connectors
The MCP for the beauty, cosmetics and personal care sector
Jersey Open Data MCP — opendata.gov.je, the official statistics / open-data
Related MCP Servers
- -
- AlicenseAqualityCmaintenanceEnables querying of current A\&E waiting times, specialist outpatient waiting times, and general outpatient clinic quotas in Hong Kong using natural language through MCP.34MIT
- AlicenseBqualityBmaintenanceMCP server for Kenya health system — NHIF/SHA coverage, facility finder, community health workers, maternal health guidance, essential medicines.633 PyPIMIT
- AlicenseAqualityDmaintenanceThis MCP is capable of analyzing medical documents and prescriptions and giving patient all the medical info it needs and answering their questions8MIT