Skip to main content
Glama

Biomart MCP

バイオマートMCP

BiomartとインターフェースするMCPサーバー

モデルコンテキストプロトコル(MCP)は、 Anthropicが開発したLLMにアプリケーションがコンテキストを提供する方法を標準化するオープンプロトコルです。ここでは、MCP Python SDKを使用して、 pybiomartパッケージを介してBiomartとインターフェースするMCPサーバーを作成します。

biomart-mcp の動作デモ

Claude Desktop 上で動作している MCP サーバーを示す短いデモ ビデオがあります。

インストール

Smithery経由でインストール

Smithery経由で Biomart MCP for Claude Desktop を自動的にインストールするには:

npx -y @smithery/cli install @jzinno/biomart-mcp --client claude

リポジトリをクローンする

git clone https://github.com/jzinno/biomart-mcp.git cd biomart-mcp

クロードデスクトップ

uv run --with mcp[cli] mcp install --with pybiomart biomart-mcp.py

カーソル

Cusrorのエージェントモードを使用すると、OpenAIやDeepSeekなどのMCPサーバーを他のモデルでも利用できます。カーソル設定の歯車をクリックしてMCPに移動し、MCPサーバーをグローバル設定に追加するか、 .cursor/mcp.jsonプロジェクトに追加してプロジェクトスコープに追加してください。

.cursor/mcp.json :

{ "mcpServers": { "Biomart": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "--with", "pybiomart", "mcp", "run", "/your/path/to/biomart-mcp.py" ] } } }

グラマ

発達

# Create a virtual environment uv venv # MacOS/Linux source .venv/bin/activate # Windows .venv\Scripts\activate uv sync #or uv add mcp[cli] pybiomart # Run the server in dev mode mcp dev biomart-mcp.py

特徴

Biomart-MCP は、Biomart データベースと対話するためのいくつかのツールを提供します。

  • Mart とデータセットの検出: Biomart データベース構造を探索するために利用可能な mart とデータセットを一覧表示します
  • 属性とフィルターの探索: 特定のデータセットの共通または利用可能なすべての属性とフィルターを表示します。
  • データ取得: 特定の属性とフィルターを使用して Biomart をクエリし、生物学的データを取得します。
  • ID 変換: 異なる生物学的識別子 (例: 遺伝子シンボルから Ensembl ID) 間の変換

貢献

プルリクエストは大歓迎です!開発に関するちょっとしたメモ:

  • ここでは意図的に@mcp.tool()のみを使用しています。これは、ドキュメントに記載されているように、MCP をサポートするクライアントとの互換性を最大化するためです。
  • 計算コストが高い関数や外部 API 呼び出しを行う関数の結果をキャッシュするために、 @lru_cacheを使用しています。
  • モデルのコンテキストウィンドウを拡張しないように注意する必要があります。例えば、多くの場所でdf.to_csv(index=False).replace("\r", "")見られます。このcsv形式の戻り値は、トークンの大部分が空白であるdf.to_string()のような関数よりもトークン効率がはるかに高くなります。また、染色体からすべての遺伝子を取得するなど、大規模なリクエストはコンテキストウィンドウに対して大きすぎることにも注意してください。

将来の潜在的な機能

もちろん、他にも追加できる機能はたくさんあり、中にはbiomart-mcpという名前の範囲を超えるものもあるかもしれません。いくつかアイデアをご紹介します。

  • bs4を使ってリソース サイトの Web スクレイピングを追加します。たとえば、NOTCH1 の Ensembl 遺伝子 ID を取得した場合、場合によっては、 UCSC のページからComments and Description Text from UniProtKBを取得することが役に立つ可能性があります。
  • Loading...
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Biomart データベースとインターフェイスするモデル コンテキスト プロトコル サーバー。モデルが生物学的データセットを検出し、属性/フィルターを探索し、生物学的データを取得し、異なる生物学的識別子間で変換できるようにします。

  1. BiomartとインターフェースするMCPサーバー
    1. インストール
      1. Smithery経由でインストール
      2. リポジトリをクローンする
      3. クロードデスクトップ
      4. カーソル
      5. グラマ
      6. 発達
    2. 特徴
      1. 貢献
        1. 将来の潜在的な機能

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that provides tools for connecting to and interacting with various database systems (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server) through a unified interface.
            Last updated -
            3
            Python
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.
            Last updated -
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that provides comprehensive access to Microsoft SQL Server databases, enabling Language Models to inspect schemas, execute queries, manage database objects, and perform advanced database operations.
            Last updated -
            6
            Python
          • A
            security
            A
            license
            A
            quality
            A production-ready Model Context Protocol (MCP) server that provides comprehensive access to the BioOntology API for searching, annotating, and exploring over 1,200 biological ontologies.
            Last updated -
            10
            6
            JavaScript
            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/jzinno/biomart-mcp'

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