Skip to main content
Glama

UniProt MCP Server

by vitamin3615
MIT License
  • Linux
  • Apple

UniProt MCP 服务器

MCP(模型上下文协议)服务器允许语言模型从 UniProt 数据库获取蛋白质信息。该服务器可与 Claude Desktop 和其他兼容 MCP 的 AI 应用程序集成。

特征

  • 搜索 UniProt :按名称、基因或其他标准搜索蛋白质
  • 获取蛋白质详细信息:检索有关蛋白质的详细信息
  • 获取蛋白质序列:获取氨基酸序列
  • 获取蛋白质功能:检索功能注释,包括 GO 术语
  • 获取蛋白质结构:查找相关的 PDB 结构

安装

  1. 克隆此存储库:
    git clone https://github.com/yourusername/uniprot-mcp-server.git cd uniprot-mcp-server
  2. 创建虚拟环境(可选但推荐):
    python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
  3. 安装依赖项:
    pip install -r requirements.txt

使用 Claude Desktop 进行本地设置

  1. 使服务器脚本可执行:
    chmod +x server.py
  2. 配置 Claude Desktop 以使用此 MCP 服务器:

对于 macOS/Linux:

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

对于 Windows:

code $env:AppData\Claude\claude_desktop_config.json
  1. 添加以下配置(更新路径以匹配您的实际文件位置):
    { "mcpServers": { "uniprot": { "command": "python", "args": [ "/ABSOLUTE/PATH/TO/uniprot-mcp-server/server.py" ] } } }
  2. 重启Claude桌面

使用示例

设置好 Claude Desktop 后,您可以提出以下问题:

  • “寻找与阿尔茨海默病相关的蛋白质”
  • “获取蛋白质 P05067(淀粉样β蛋白前体蛋白)的序列”
  • “TP53 蛋白质的功能是什么?”
  • “BRCA1 蛋白有已知的 3D 结构吗?”

发展

直接运行服务器进行测试:

python server.py

测试实用程序

该项目包括两个用于验证功能的测试实用程序:

1. 服务器健康检查

验证 MCP 服务器是否正确启动且无错误:

python server_health_check.py

2. UniProt API 测试

测试与 UniProt API 的连接并验证所有 API 调用是否按预期工作:

python test_server.py

在使用服务器之前运行这些测试以确保一切配置正确。

执照

麻省理工学院

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

  1. 分叉存储库
  2. 创建你的功能分支( git checkout -b feature/amazing-feature
  3. 提交您的更改( git commit -m 'Add some amazing feature'
  4. 推送到分支( git push origin feature/amazing-feature
  5. 打开拉取请求
-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

MCP 服务器使语言模型能够从 UniProt 数据库获取蛋白质信息,包括蛋白质细节、序列、功能和结构。

  1. 特征
    1. 安装
      1. 使用 Claude Desktop 进行本地设置
        1. 对于 macOS/Linux:
        2. 对于 Windows:
      2. 使用示例
        1. 发展
          1. 测试实用程序
            1. 服务器健康检查
            2. UniProt API 测试
          2. 执照
            1. 贡献

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                Enables AI assistants to access protein information directly from UniProt, allowing retrieval of protein names, functions, sequences, and organism data by accession number.
                Last updated -
                2
                1
                Python
                MIT License
                • Apple
                • Linux
              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server that enhances language models with protein structure analysis capabilities, enabling detailed active site analysis and disease-related protein searches through established protein databases.
                Last updated -
                2
                6
                TypeScript
              • -
                security
                F
                license
                -
                quality
                An MCP server that enables language models to access code intelligence features like completions, definitions, and references across multiple programming languages through the Language Server Protocol.
                Last updated -
                Python
              • -
                security
                -
                license
                -
                quality
                A server that enables communication with multiple unichat-based MCP servers simultaneously, allowing users to query different language models and combine their responses for more comprehensive results.
                Last updated -
                JavaScript

              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/vitamin3615/uniprot-mcp-server'

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