
parnexcodes/synthetic-web-search-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
A Model Context Protocol (MCP) server that exposes the Synthetic web search API as a tool for use with Claude and other MCP-compatible applications.
概要
A Model Context Protocol (MCP) server that exposes the Synthetic web search API as a tool for use with Claude and other MCP-compatible applications. This server provides a search_web tool that allows MCP clients to perform web searches using the Synthetic API. Search results are returned as formatted JSON containing URL, title, text, and published date fields. Add the MCP server to Claude Code with a single command: Replace your_api_key_here with your actual Synthetic API key. To use this MCP server with Claude Desktop, add the following to your Claude Desktop configuration file: : ~/Library/Application Support/Claude/claude_desktop_config.json : %APPDATA%\Claude\claude_desktop_config.json After adding the configuration, restart Claude Desktop. You can then use the web search tool in your conversations. To use this MCP server with opencode, add the following to your opencode configuration:
README
以下は原文 README の抜粋です。原文を見る。
Synthetic Web Search MCP Server
A Model Context Protocol (MCP) server that exposes the Synthetic web search API as a tool for use with Claude and other MCP-compatible applications.
Overview
This server provides a search_web tool that allows MCP clients to perform web searches using the Synthetic API. Search results are returned as formatted JSON containing URL, title, text, and published date fields.
Quick Start with Claude Code
Add the MCP server to Claude Code with a single command:
claude mcp add synthetic-web-search -e SYNTHETIC_API_KEY=your_api_key_here -- npx -y synthetic-web-search-mcp@latest
Replace your_api_key_here with your actual Synthetic API key.
Usage with Claude Desktop
To use this MCP server with Claude Desktop, add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"synthetic-web-search": {
"command": "npx",
"args": ["-y", "synthetic-web-search-mcp@latest"],
"env": {
"SYNTHETIC_API_KEY": "your_actual_api_key_here"
}
}
}
}
After adding the configuration, restart Claude Desktop. You can then use the web search tool in your conversations.
Usage with opencode
To use this MCP server with opencode, add the following to your opencode configuration:
{
"mcp": {
"synthetic-web-search": {
"type": "local",
"command": ["npx", "-y", "synthetic-web-search-mcp@latest"],
"environment": {
"SYNTHETIC_API_KEY": "your_actual_api_key_here"
},
"enabled": true
}
}
}
Replace your_actual_api_key_here with your actual Synthetic API key. Restart opencode after adding the configuration.
Local Development & Testing
1. Prerequisites
- Node.js 18+
- A Synthetic API key
2. Install & build
npm install
npm run build
3. Test with MCP Inspector
The fastest way to verify the server interactively without any client configuration:
SYNTHETIC_API_KEY=your_key_here \
npx @modelcontextprotocol/inspector node dist/index.js
This opens a browser UI where you can invoke search_web directly. Try:
queryonly →textis capped at the default 1000 characters.query+max_text_length: 200→ tighter truncation to quickly scan results.query+max_text_length: 5000→ more content when you need full detail.
4. Test with Claude Code (local build)
claude mcp add synthetic-web-search \
-e SYNTHETIC_API_KEY=your_key_here \
-- node /absolute/path/to/synthetic-web-search-mcp/dist/index.js
5. Test with Claude Desktop (local build)
インストール
npx -y synthetic-web-search-mcp@latest設定
{
"mcpServers": {
"synthetic-web-search": {
"command": "npx",
"args": ["-y", "synthetic-web-search-mcp@latest"],
"env": {
"SYNTHETIC_API_KEY": "your_actual_api_key_here"
}
}
}
}