UniProt Protein Information
STDIOMCP server that provides access to UniProt protein information and sequence data.
MCP server that provides access to UniProt protein information and sequence data.
A Model Context Protocol (MCP) server that provides access to UniProt protein information. This server allows AI assistants to fetch protein function and sequence information directly from UniProt.
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
Add to your Claude Desktop config file:
%APPDATA%\Claude\claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
{ "mcpServers": { "uniprot": { "command": "uv", "args": ["--directory", "path/to/uniprot-mcp-server", "run", "uniprot-mcp-server"] } } }
After configuring the server in Claude Desktop, you can ask questions like:
Can you get the protein information for UniProt accession number P98160?
For batch queries:
Can you get and compare the protein information for both P04637 and P02747?
get_protein_info
accession
(UniProt accession number){ "accession": "P12345", "protein_name": "Example protein", "function": ["Description of protein function"], "sequence": "MLTVX...", "length": 123, "organism": "Homo sapiens" }
get_batch_protein_info
accessions
(array of UniProt accession numbers)python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e ".[dev]"
pytest
This project uses:
Run all checks:
black . isort . flake8 . mypy . bandit -r src/ safety check
The server handles various error scenarios:
We welcome contributions! Please feel free to submit a Pull Request. Here's how you can contribute:
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)Please make sure to update tests as appropriate and adhere to the existing coding style.
This project is licensed under the MIT License - see the LICENSE file for details.