NIH RePORTER MCP

MIT License
  • Linux
  • Apple

Integrations

  • Provides tools for searching NIH-funded research projects and associated publications through the NIH RePORTER API, allowing users to query by criteria such as fiscal years, PI names, organizations, funding amounts, and more.

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文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

模型上下文协议服务器,可通过 NIH RePORTER 数据库对 NIH 资助的研究项目和出版物进行对话式搜索。

  1. Features
    1. Prerequisites
      1. Installation
        1. Usage
          1. Example claude_desktop_config.json
        2. Debugging
          1. Development
            1. Logging
              1. Contributing
                1. License

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol server that enables interaction with Snapshot.org, providing tools to query Snapshot spaces, proposals, and users through natural language.
                    Last updated -
                    5
                    2
                    TypeScript
                    MIT License
                    • Apple
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A Model Context Protocol server that enables AI models to interact with SourceSync.ai's knowledge management platform for managing documents, ingesting content from various sources, and performing semantic searches.
                    Last updated -
                    25
                    14
                    • Apple
                    • Linux
                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol server that provides access to the DBLP computer science bibliography database, allowing AI models to search publications, process citations, and generate accurate BibTeX entries.
                    Last updated -
                    6
                    1
                    Python
                    MIT License
                    • Apple
                    • Linux
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A Model Context Protocol server that enables interaction with Shortcut (formerly Clubhouse) project management tool, allowing users to view and search projects, stories, epics, and objectives, as well as create new items through natural language.
                    Last updated -
                    3
                    Python
                    • Apple

                  View all related MCP servers

                  ID: 83j66xu67l