クロードウェブ検索MCPサーバー
このMCP(モデルコンテキストプロトコル)サーバーは、Claude APIを使用したWeb検索機能を提供します。これにより、LLMは標準化されたインターフェースを通じてWebから最新の情報にアクセスできるようになります。
特徴
Claude の Web 検索 API を使用した Web 検索ツール
ドメインフィルタリング(許可ドメインとブロックドメイン)のサポート
検索ごとに設定可能な最大結果数
Claude Desktop 構成ファイルからの自動構成
前提条件
Node.js 18以上
ウェブ検索が有効になっているAnthropic APIキー
Claude テスト用デスクトップアプリ
インストールとセットアップ
リポジトリをクローンします。
git clone https://github.com/Doriandarko/claude-search-mcp.git cd claude-search-mcp依存関係をインストールします:
npm installサーバーを構築します。
npm run buildこれにより、TypeScript コードがコンパイルされ、サーバーが実行可能になります。
グローバル アクセス用にサーバーをリンクします。
npm linkこれにより
mcp-server-claude-search
コマンドがシステム全体で使用できるようになり、Claude デスクトップ アプリがそれを検出できるようになります。
Claudeデスクトップアプリでサーバーを実行する
サーバーがインストールされリンクされると、正しく構成されていれば、Claude Desktop アプリはそれを自動的に管理できます。
Claudeデスクトップアプリの設定: ClaudeデスクトップアプリのMCPサーバー設定ファイル(通常は
claude_desktop_config.json
)を開きます。このサーバーのエントリを追加または更新します。{ "mcpServers": { // ... other servers ... "claude-search": { "command": "mcp-server-claude-search", "env": { "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE" } } // ... other servers ... } }"YOUR_ANTHROPIC_API_KEY_HERE"
実際のAnthropic APIキーに置き換えてください。env
変数がここで設定されていない場合、サーバーは~/code/claude-search-mcp/claude_desktop_config.json
からもこのキーを読み取ろうとしますが、メイン設定でサーバーごとに定義することをお勧めします。Claudeデスクトップアプリを起動します。Claudeデスクトップアプリケーションを起動(または再起動)します。これで、必要に応じて
mcp-server-claude-search
検出して起動できるようになります。Web 検索の使用: Claude との会話で Web 検索機能を使用できるようになりました。
手動サーバー実行(テスト/開発用)
テストまたは開発目的でサーバーを手動で実行する場合 (Claude デスクトップ アプリの管理外で) :
グローバルにリンクされたコマンドを使用する:
mcp-server-claude-searchtsx を直接使用する (自動再起動による開発の場合):
npm run devコンパイルされたコードを直接実行する:
npm start
ウェブ検索ツールのパラメータ
Web 検索ツールは、LLM によって呼び出されたときに次のパラメータをサポートします。
query
(必須): 検索クエリ文字列。maxResults
(オプション): 返される検索結果の最大数 (デフォルト: 5)。allowedDomains
(オプション): 検索結果に含めるドメインの配列 (例:["example.com", "wikipedia.org"]
)。blockedDomains
(オプション): 検索結果から除外するドメインの配列。
ライセンス
マサチューセッツ工科大学
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Anthropic API を使用して Claude AI に Web 検索機能を提供し、カスタマイズ可能なドメイン フィルタリングを使用して LLM が Web から最新の情報にアクセスできるようにします。
Related MCP Servers
- AsecurityAlicenseAqualityA server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.Last updated -256MIT License
- AsecurityAlicenseAqualityFacilitates web search capabilities using Perplexity's API, allowing users to retrieve search results through Claude's interface.Last updated -4MIT License
- -securityFlicense-qualityAllows Claude or other MCP-compatible AI assistants to search the web and get up-to-date information using the Perplexity API, with features for filtering results by time period.Last updated -8
- -securityAlicense-qualityA server that enables Claude AI to interact with Weaviate vector databases, supporting both search and storage operations through Anthropic's MCP protocol.Last updated -2GPL 3.0