Skip to main content
Glama

NIH 记者 MCP

用于与NIH RePORTER聊天的模型上下文协议(MCP)服务器。以对话方式搜索 NIH 资助的研究项目和出版物。随附博客文章在此

图片

特征

  • 按不同标准搜索 NIH 资助的研究项目:

    • 财政年度

    • 首席研究员姓名

    • 组织详细信息(名称、州、城市、类型、部门)

    • 资助金额

    • COVID-19 响应状态

    • 资金机制

    • 研究所/中心代码

    • RCDC 术语

    • 日期范围

  • 搜索与 NIH 项目相关的出版物

  • 项目和出版物的综合搜索功能

  • 详细的项目和出版物信息,包括摘要

  • 可配置的结果限制

先决条件

  • Python 3.12 或更高版本

  • UV 包管理器(推荐用于更快的依赖项安装)

安装

  1. 克隆存储库:

git clone <repository-url> cd mcp-nih-reporter
  1. 创建并激活虚拟环境:

python -m venv .venv source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`
  1. 使用 UV 安装依赖项:

uv pip install -e .

用法

该 MCP 服务器通过多种工具提供对 NIH RePORTER API 的访问:

  • search_projects :搜索 NIH 资助的研究项目

  • search_publications :搜索与 NIH 项目相关的出版物

  • search_combined :同时搜索项目和出版物

  • test_connection :测试 API 连接

您可以将此 MCP 与任何兼容 MCP 的客户端一起使用,例如:

  • 克劳德桌面

  • 光标

  • 其他支持 MCP 的工具

示例 claude_desktop_config.json

{ "mcpServers": { "nih-reporter": { "command": "<fully qualified path to>/uv", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "<fully qualified path to>/mcp-nih-reporter/mcp-nih-reporter.py" ] } } }

搜索结果将以结构化格式返回,其中包含项目详细信息,包括:

  • 项目名称和摘要

  • 首席研究员信息

  • 组织详细信息

  • 资金信息

  • 项目日期和状态

调试

当 MCP 尝试在客户端(例如 Claude Desktop)中运行时,会在根文件夹中创建一个日志文件。如果您遇到问题,请检查该文件。

发展

该项目采用:

  • httpx用于异步 HTTP 请求

  • mcp用于任务控制协议的实现

  • python-dotenv用于环境变量管理

  • uv用于依赖管理

日志记录

日志写入项目根目录下的mcp-nih-reporter.log文件。日志级别默认为 INFO。

贡献

欢迎贡献代码!欢迎提交 Pull 请求。对于重大变更,请先提交一个 issue 来讨论您想要修改的内容。

  1. 分叉存储库

  2. 创建你的功能分支( git checkout -b feature/amazing-feature

  3. 提交您的更改( git commit -m 'Add some amazing feature'

  4. 推送到分支( git push origin feature/amazing-feature

  5. 打开拉取请求

请确保适当更新测试并遵循现有的代码风格。

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Related MCP Servers

  • A
    security
    -
    license
    A
    quality
    A Model Context Protocol server implementation that enables natural language interactions with OpenSearch clusters, allowing users to search documents, analyze indices, and manage clusters through simple conversational commands.
    Last updated -
    6
    10
    Apache 2.0
    • Apple
  • -
    security
    F
    license
    -
    quality
    A Model Context Protocol server that enables querying FHIR healthcare data using natural language, allowing doctors to retrieve patient information, medications, observations, and other healthcare records.
    Last updated -
    1
  • -
    security
    -
    license
    -
    quality
    A comprehensive Model Context Protocol server that provides AI assistants with direct access to Semantic Scholar's academic database, enabling advanced paper discovery, citation analysis, author research, and AI-powered recommendations.
    Last updated -
    4
    • Apple
    • Linux
  • A
    security
    A
    license
    A
    quality
    A comprehensive Model Context Protocol server that enables advanced PubMed literature search, citation formatting, and research analysis through natural language interactions.
    Last updated -
    12
    7
    MIT License

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jbdamask/mcp-nih-reporter'

If you have feedback or need assistance with the MCP directory API, please join our Discord server