MCP WebSearch
MCP WebSearch
Claude Code用MCPサーバー:Perplexity Sonarによるウェブ検索と画像生成を、すべて1つのOpenRouterキーで実現。
1つのタスクのために書かれています:エージェントが余計なコストをうっかり費やさないようにすること。高価な検索モデルはデフォルトではなく、画像生成には呼び出し前に価格を計算する専用ツールが用意されています。
インストール
git clone git@github.com:DrSeedon/mcp-websearch.git ~/.claude/mcp-servers/websearch
cd ~/.claude/mcp-servers/websearch
npm install
cp .env.example .env # и вписать свой ключClaude Codeへの登録:
claude mcp add websearch node ~/.claude/mcp-servers/websearch/index.js \
-e OPENROUTER_API_KEY=sk-or-v1-...Node 18+が必要です(ネイティブの fetch とESMを使用)。
Related MCP server: sysauto Ask MCP Server
環境変数
変数 | 必須 | 用途 |
| 必須 | OpenRouterのキー。起動時に検証される |
| 任意 |
|
キーは環境からのみ読み取られます。コード内には存在せず、存在すべきでもありません。
ツール
search
Perplexity Sonarによるウェブ検索。回答、出典、リクエストの費用を返します。
モデル | 価格 | 使用場面 |
| ~$0.006 | デフォルト。 事実、ドキュメント、通常のリサーチ |
| ~$0.03 |
|
他のsearchモデルはありません。リストはコードレベルで制限されています。
これが重要な理由: 価格差は5倍です。高価なモデルをデフォルトにすると、エージェントは考えずにそれを呼び出してしまいます。実際のセットアップで検証済み:425件中171件のリクエストが、モデルを明示的に指定しなかっただけで高価な料金で処理されました。
generate_image
画像生成。入力として参照画像と、21:9 から 9:16 までのアスペクト比をサポートしています。
モデル | 用途 |
| デフォルト、良好な品質 |
| 低コスト向け |
| 代替エンジン。高速から高品質へ |
| もうひとつのスタイル選択肢 |
generate_image_cost
生成コストを呼び出し前に計算します。モデル選びを「リストの最初のものを選ぶ」のではなく、事前に意識した選択にすることができます。
ログ
requests.log(.gitignore 内) — JSONL形式で、1行に1回の呼び出し: [iso] tool: {json}.
search— リクエスト、完全な回答、出典、モデル、トークン、コストgenerate_image— プロンプト、保存パス、サイズ、参照画像;base64ファイルはログに書き込まれません画像の横の
generated/には、同じプロンプトとメタデータを持つ.jsonが置かれます
コミットされないもの
.env, requests.log, generated/(生成画像のアーカイブ)、node_modules/。ログや画像にはリクエスト履歴が含まれます。これはプライベートデータであり、リポジトリに置くべきものではありません。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that enables Claude to perform web searches using Perplexity's API with intelligent model selection based on query intent and support for domain and recency filtering.64MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that integrates with Sonar API to provide Claude with real-time web search capabilities for comprehensive research.14MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that brings Perplexity's Sonar models with real-time web search capabilities to Claude Desktop and other MCP clients.199MIT
- AlicenseAqualityDmaintenanceMCP server that bridges OpenAI's Agents SDK with Claude Code, enabling web search, file search, and computer use capabilities directly in your development environment.291MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
MCP server for Grok Imagine AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/DrSeedon/mcp-websearch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server