Yandex Search MCP Serverのロゴ

Yandex Search MCP Server

組織
yandex

Perform real-time web searches using the Yandex Search API.

公開者yandex
リポジトリyandex-search-mcp-server
言語Python
フォーク
5
スター
47
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Yandex Search MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(0個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには47件のスターと5件のフォークがあります。

Yandex Search MCP Server

This Model Context Protocol (MCP) server lets AI assistants like Claude and Cursor use the Yandex Search API for searching the web. Yandex Search enables LLM agents to safely and easily find up-to-date information on the internet.

Available Tools

The Yandex Search MCP server includes the following tools:

  • ai_search_post Performs a real-time web search and returns an AI-generated answer based on the search results using Yandex Yazeka AI model.
  • web_search_post: Performs a real-time web search and returns answer with sources

Getting API Key

To use this MCP server, you need to be a customer of Yandex Search API. Also you need a Yandex Search API key and folder id:

How to use Yandex Search MCP Remotely (recommended)

Yandex Search MCP URL for Remote Connection

https://d5de9siimt9bkld7viic.emzafcgx.apigw.yandexcloud.net:3000/sse

How to Add Yandex Search MCP to Claude 🤖

1. Configure Claude Desktop to Recognize MCP Servers

Open the Claude Desktop app and enable Developer Mode from the top-left menu bar.

Once enabled, open Settings (also from the top-left menu bar) and navigate to the Developer Option.

Click the Edit Config button to open the claude_desktop_config.json file

2. Add Yandex Search MCP to Claude Desktop

Add the following text to your Claude Desktop configuration file:

json
{
  "mcpServers": {
    "yandexSearch": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://d5de9siimt9bkld7viic.emzafcgx.apigw.yandexcloud.net:3000/sse",
        "--header", "ApiKey:<your_api_key>",
        "--header", "FolderId:<your_folder_id>"
      ]
    }
  }
}

3. Restart Claude Desktop

For the changes to take effect:

  1. Completely quit Claude Desktop (not just close the window)
  2. Start Claude Desktop again
  3. Click "Search and Tools" to verify that yandexSearch is enabled and running

How to Add Yandex Search MCP to Cursor 🤖

1. Configure Cursor to Recognize MCP Servers

Open Settings and navigate to Tools and Integrations in the left panel.

Click the Add Custom MCP button to create the mcp.json config file in cursor

2. Add Yandex Search MCP to Cursor

Add the following text to your Claude Desktop configuration file:

json
{
  "mcpServers": {
    "yandexSearch": {
      "type": "sse",
      "url": "https://d5de9siimt9bkld7viic.emzafcgx.apigw.yandexcloud.net:3000/sse",
      "headers": {
        "ApiKey": "<your_api_key>",
        "FolderId": "<your_folder_id>"
      }
    }
  }
}

3. Find information on the web with yandexSearch

  1. Verify the setup by typing the following text in the chat:
use yandexSearch to find information about the best AI Agent frameworks in 2025
  1. Cursor will ask you to confirm that it should use yandexSearch, click the Run Tool button or press (⌘↵) to confirm.
  2. You should see "called search-api_post" in the chat and the answer based on the web search results.

How to Add Yandex Search MCP to Visual Studio Code 🤖

1. Configure Visual Studio Code to Recognize MCP Servers

Enable the chat.mcp.enabled setting in VS Code to enable MCP support.

Add a .vscode/mcp.json file in your workspace to configure MCP servers for a workspace.

2. Add Yandex Search MCP to Visual Studio Code

Add the following text to your Claude Desktop configuration file:

json
{
  "mcpServers": {
    "yandexSearch": {
      "type": "sse",
      "url": "https://d5de9siimt9bkld7viic.emzafcgx.apigw.yandexcloud.net:3000/sse",
      "headers": {
        "ApiKey": "<your_api_key>",
        "FolderId": "<your_folder_id>"
      }
    }
  }
}

3. Open CoPilot in Agent Mode

  1. Open the Chat view (⌃⌘I), and select Agent mode from the dropdown.
  2. Select the Tools button to view the list of available tools.
  3. The AI Agent will automatically select yandexSearch when it needs to find information on the internet.
  4. To ensure that the AI Agent uses yandexSearch click the Add Context Button, and select search-api_post from the available tools.
  5. For advanced configuration settings visit the official VS Code MCP tutorial

How to run Yandex Search MCP locally

Prerequisites

  • Python 3.10+
  • Node.js 16+ (for MCP development)
  • Docker 20+ or Podman 3+ (for containerized deployment)

Installation

bash
git clone git@github.com:yandex/yandex-search-mcp-server.git
cd /path/to/yandex-search-mcp-server

Option 1: Use Yandex Search MCP with Docker/Podman

Step 1. Build the container

To run the MCP server in a container using Docker or Podman:

  1. Ensure Docker and Docker Compose, or Podman and Podman Compose, are installed on your system.
  2. For Podman users: If you need to pull images from Docker Hub, first authenticate:
    bash
    podman login docker.io
    Enter your Docker Hub username and password when prompted.
  3. Build the container:
    • Using Docker:
      bash
      docker build -t yandex-mcp-server-image:latest .
    • Using Podman:
      bash
      podman build -t yandex-mcp-server-image:latest .

This will create an image named yandex-mcp-server-image.

Step 2. Add MCP server configs and set SEARCH_API_KEY.

For MCP clients that support direct interaction with Docker or Podman containers, add one of these configurations to the MCP config in your MCP client of choice (e.g. mcp.json in VS Code):

  • Using Docker:
json
{
  "mcpServers": {
    "yandex-search-api-docker": {
      "autoApprove": [],
      "disabled": true,
      "timeout": 60,
      "type": "stdio",
      "command": "sh",
      "args": [
        "-c",
        "docker rm -f yandex-mcp-container; docker run -i --name yandex-mcp-container --env SEARCH_API_KEY=<your_api_key> --env FOLDER_ID=<your_folder_id> yandex-mcp-server-image:latest"
      ]
    }
  }
}
  • Using Podman:
json
{
  "mcpServers": {
    "yandex-search-api-podman": {
      "autoApprove": [],
      "disabled": true,
      "timeout": 60,
      "type": "stdio",
      "command": "sh",
      "args": [
        "-c",
        "podman rm -f yandex-mcp-container; podman run -i --name yandex-mcp-container --env SEARCH_API_KEY=<your_api_key> --env FOLDER_ID=<your_folder_id> yandex-mcp-server-image:latest"
      ]
    }
  }
}

Important: Replace <your_api_key> and <your_folder_id> with your actual Yandex Search API key and folder id. Ensure that only one instance of the server (local or Docker) is active at a time to avoid conflicts.

After updating the configuration, the system should automatically detect and run the server, exposing the ai_search_with_yazeka and web_search tools for use.

Option 2: Use Python + MCP Config

Step 1. Install required libraries

bash
  pip install -r requirements.txt

Step 2.1 Configure the MCP Settings in an MCP client

To setup the MCP server on your system using Python, add the following configuration to your MCP settings and set SEARCH_API_KEY:

json
{
  "mcpServers": {
    "yandex-search-api": {
      "autoApprove": [],
      "disabled": true,
      "timeout": 60,
      "type": "stdio",
      "command": "env",
      "args": [
        "SEARCH_API_KEY=<your_api_key>",
        "FOLDER_ID=<your_folder_id>",
        "python3",
        "/path/to/mcp-server-demo/server.py"
      ]
    }
  }
}

Important: Replace <your_api_key> and <your_folder_id> with your actual Yandex Search API key and folder id. Update /path/to/mcp-server-demo to the actual path where the repository is located on your system if necessary.

After updating the configuration, the system should automatically detect and run the server, exposing the ai_search_with_yazeka and web_search tools for use.

Step 2.2 Launch the local MCP Server directly

To run the MCP server directly on your machine without containerization:

  1. Ensure you have Python 3.10+ installed.
  2. Set the required environment variable for the API key (replace <your_api_key> and <your_folder_id> with your actual Yandex Search API key and folder id):
bash
export SEARCH_API_KEY=<your_api_key>
  1. Run the server:
bash
python3 server.py

The server will start and listen for input on stdin, responding on stdout. Typically, this server is integrated with a system that communicates via MCP, however you can send requests to the server from the terminal.

Example Requests

Copy and Paste these example requests in the terminal with the Yandex Search MCP server running locally to see the search results and the generative AI answer right in the terminal.

Web Search Example

json
{
    "query": "Who won the most recent Formula 1 race in 2025?",
    "search_region": "en"
}

AI Search Example

json
{
    "query": "Who won the most recent Formula 1 race in 2025?",
    "search_region": "en"
}

Troubleshooting

  • If the server fails to start, ensure all dependencies are installed correctly (pip install -r requirements.txt).
  • If you encounter authentication errors, double-check that the SEARCH_API_KEY is correctly set in your environment or configuration.

Built by the Yandex team with ❤️

Yandex Search MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Yandex Search MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Yandex Search MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Yandex Search MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "yandex-search-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてYandex Search MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Yandex Search MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Yandex Search MCP Serverを使ってこのタスクを手伝ってもらえますか?
Yandex Search MCP Server
はい、読みました。
Yandex Search MCP Serverで調べた結果をお伝えします。

よくある質問

Yandex Search MCP Server MCPサーバーは何に使いますか?

Yandex Search MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでYandex Search MCP Server MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでYandex Search MCP Serverを利用できます。

TypingMindでYandex Search MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。Yandex Search MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Yandex Search MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

Yandex Search MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでYandex Search MCP Server MCPのどのようなツールを利用できますか?

Yandex Search MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Yandex Search MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Yandex Search MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇