UniProt MCP Server
UniProt MCP サーバー
UniProtタンパク質情報へのアクセスを提供するモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、AIアシスタントはUniProtからタンパク質の機能と配列情報を直接取得できます。
特徴
UniProtアクセッション番号でタンパク質情報を取得する
複数のタンパク質のバッチ検索
パフォーマンス向上のためのキャッシュ(24時間TTL)
エラー処理とログ記録
情報には以下が含まれます:
タンパク質名
機能の説明
フルシーケンス
シーケンスの長さ
生物
Related MCP server: mcp-uniprot
クイックスタート
Python 3.10以降がインストールされていることを確認してください
このリポジトリをクローンします:
git clone https://github.com/TakumiY235/uniprot-mcp-server.git cd uniprot-mcp-server依存関係をインストールします:
# Using uv (recommended) uv pip install -r requirements.txt # Or using pip pip install -r requirements.txt
構成
Claude Desktop 構成ファイルに以下を追加します:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"uniprot": {
"command": "uv",
"args": ["--directory", "path/to/uniprot-mcp-server", "run", "uniprot-mcp-server"]
}
}
}使用例
Claude Desktop でサーバーを構成した後、次のような質問をすることができます。
Can you get the protein information for UniProt accession number P98160?バッチクエリの場合:
Can you get and compare the protein information for both P04637 and P02747?APIリファレンス
ツール
get_protein_info単一のタンパク質の情報を取得する
必須パラメータ:
accession(UniProt アクセッション番号)応答例:
{ "accession": "P12345", "protein_name": "Example protein", "function": ["Description of protein function"], "sequence": "MLTVX...", "length": 123, "organism": "Homo sapiens" }
get_batch_protein_info複数のタンパク質の情報を取得する
必須パラメータ:
accessions(UniProt アクセッション番号の配列)タンパク質情報オブジェクトの配列を返します
発達
開発環境の設定
リポジトリをクローンする
仮想環境を作成します。
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate開発依存関係をインストールします。
pip install -e ".[dev]"
テストの実行
pytestコードスタイル
このプロジェクトでは以下を使用します:
コードフォーマット用の黒
インポートソート用のisort
糸くず除去用flake8
型チェックのためのmypy
セキュリティチェックの盗賊
依存関係の脆弱性チェックの安全性
すべてのチェックを実行します:
black .
isort .
flake8 .
mypy .
bandit -r src/
safety check技術的な詳細
MCP Python SDKを使用して構築
非同期HTTPリクエストにhttpxを使用する
OrderedDictベースのキャッシュを使用して24時間TTLのキャッシュを実装します
レート制限と再試行を処理する
詳細なエラーメッセージを提供する
エラー処理
サーバーはさまざまなエラー シナリオを処理します。
無効なアクセス番号(404 応答)
API接続の問題(ネットワークエラー)
レート制限(429件の回答)
不正な応答(JSON 解析エラー)
キャッシュ管理(TTLとサイズ制限)
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。貢献方法は以下の通りです。
リポジトリをフォークする
機能ブランチを作成します(
git checkout -b feature/amazing-feature)変更をコミットします (
git commit -m 'Add some amazing feature')ブランチにプッシュする (
git push origin feature/amazing-feature)プルリクエストを開く
必要に応じてテストを更新し、既存のコーディング スタイルに準拠するようにしてください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
謝辞
タンパク質データAPIを提供するUniProt
モデルコンテキストプロトコル仕様のAnthropic
このプロジェクトの改善に協力してくれた貢献者
Available Tools
2 toolsget_batch_protein_infoB
Get protein information for multiple accession No.
Inputs: accessions (required).
get_protein_infoB
Get protein function and sequence information from UniProt using an accession No.
Inputs: accession (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: get_protein_info retrieves detailed function and sequence information for a single protein accession, while get_batch_protein_info handles multiple accessions in batch. There is no overlap or ambiguity in their functions.
Both tools follow a consistent verb_noun pattern with 'get_' prefix and snake_case naming. The naming clearly indicates the action (get) and target (protein_info), with batch differentiation for the multi-accession tool.
With only two tools, the server feels severely under-scoped for a UniProt domain. While the tools cover basic retrieval, there are obvious gaps for operations like searching, filtering, or accessing related data (e.g., taxonomy, structures), making the surface too thin for comprehensive protein information workflows.
The server is severely incomplete for UniProt functionality. It only provides protein information retrieval (single and batch), missing essential operations like search_by_keyword, get_taxonomy, get_structure, or update tracking. This will cause agent failures when trying to perform typical bioinformatics tasks beyond simple lookups.
Maintenance
Related MCP Connectors
Give AI assistants access to real-time data. Search the web, compare flights, find hotels, and more.
Provide AI assistants with real-time access to official SEC EDGAR filings and financial data. Enab…
Provide detailed Pokémon data and information through a standardized MCP interface. Enable LLMs an…
Enable AI assistants to perform web searches using Perplexity's Sonar Pro.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides seamless access to UniProtKB protein database, enabling queries for protein entries, sequences, Gene Ontology annotations, full-text search, and ID mapping across 200+ database types.518 PyPI2MIT
- AlicenseNot gradedqualityCmaintenanceProvides access to UniProt protein sequence and function knowledge base, enabling search and retrieval of protein entries, proteomes, taxonomy, and feature annotations.76 npmMIT
- FlicenseBqualityDmaintenanceProvides programmatic access to AlphaFold protein structure predictions and UniProt data, enabling users to retrieve protein structures, summaries, and annotations through natural language.3-
- AlicenseNot gradedqualityDmaintenanceSearches UniProt by protein name to find accession numbers and retrieves detailed protein structure information from AlphaFold, including direct links to 3D structural predictions.3MIT