dayi-search-mcp

dayi-search-mcp

Enables querying Chinese medical information (drugs, diseases, doctors, symptoms) from the Dayi platform with structured output and auto-type detection.

Category
Visit Server

README

dayi-search-mcp

基于中国医药信息查询平台(Dayi)的检索与提取项目。
当前已形成首个正式可用版本:@xiaoyibao_2025/dayi-mcp-server@0.1.7

modelscope https://modelscope.cn/mcp/servers/caiql2002/dayi-search-mcp

项目组成

  1. Python Coresrc/dayi_core
    • 负责检索、详情提取、结构化输出
    • 支持类型:medical / disease / doctor / symptom
  2. MCP Servermcp-server
    • Node/TypeScript 实现
    • 已打包内置 Python Core(发布包内 python/dayi_core

Python Core 快速使用

PYTHONPATH=src python3 -m dayi_core.cli.main query --type medical --keyword 替吉奥 --json /tmp/替吉奥.json

MCP 工具能力(0.1.7)

  • dayi_query:指定 type + keyword 查询
  • dayi_query_auto:自动判定类型
  • medical 输出增强:
    • record.sections.药品详情:成分/性状/适应症/用法用量/规格/贮藏方法/有效期/执行标准
    • record.sections.注意事项:不良反应/禁忌/药物相互作用/注意事项
  • 返回 structuredContent.raw 原始证据:
    • detail_html / nuxt_script / search_payload
  • 支持落盘:
    • save_path 可选
    • 不传时默认落盘 /tmp/标题_YYYYMMDD.json
    • 返回 structuredContent.saved_path

客户端接入指引

1) Cherry Studio

使用 mcpServers 配置(推荐锁版本):

{
  "mcpServers": {
    "dayi-mcp-server": {
      "command": "npx",
      "args": ["-y", "@xiaoyibao_2025/dayi-mcp-server@0.1.7"],
      "transport": "stdio"
    }
  }
}

2) FastGPT

在 MCP/工具接入里新增 stdio server,命令填:

npx -y @xiaoyibao_2025/dayi-mcp-server@0.1.7

transport 选 stdio,工具自动通过 tools/list 发现。

3) OpenClaw

在插件或运行时的 MCP 配置中添加一个 stdio server:

{
  "mcpServers": {
    "dayi-mcp-server": {
      "command": "npx",
      "args": ["-y", "@xiaoyibao_2025/dayi-mcp-server@0.1.7"],
      "transport": "stdio"
    }
  }
}

4) Claude Code

在项目的 MCP 配置文件中注册:

{
  "mcpServers": {
    "dayi-mcp-server": {
      "command": "npx",
      "args": ["-y", "@xiaoyibao_2025/dayi-mcp-server@0.1.7"],
      "transport": "stdio"
    }
  }
}

5) Codex / Codex CLI

使用同样的 stdio MCP 配置方式,命令保持一致:

npx -y @xiaoyibao_2025/dayi-mcp-server@0.1.7

开发与测试

# Python tests
pytest tests -q

# MCP build
cd mcp-server
npm install
npm run sync:python
npm run build

Skills

已新增项目内技能:

  • skills/dayi-mcp-query/SKILL.md

用途:在支持 Skill 机制的客户端中,自动触发 Dayi MCP 查询流程(药品/疾病/医生/症状、落盘 JSON、RAG 入库预处理)。

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured