本MCP服务器为用户提供对Jina AI搜索和抓取工具的访问能力,助力用户高效开展网络搜索与内容抓取工作。
searchWeb
:可在网络上进行搜索。输入格式为:{ query: string; site?: string; }
scrapeUrl
:用于从指定URL中抓取内容。输入格式为:{ url: string; }
performDeepSearch
:借助Jina AI执行深度搜索。输入格式为:{ query: string; reasoning_effort?: 'low' | 'medium' | 'high'; no_direct_answer?: boolean; }
config.json
)运行该服务器需要一个config.json
文件,请参考src/config.ts
中的完整模式(ConfigSchema
)。以下是配置示例:
{
"name": "simple-jina-mcp-server", // 服务器名称用于MCP发现
"version": "1.0.0", // 服务器版本
"apiKeys": {
"jina": "YOUR_JINA_API_KEY" // 可选:Jina API密钥
},
"logLevel": "info", // 可选:debug, info, warn, error(默认为"info")
"transport": "http", // 可选:"http"或"stdio"(默认:"http")
"port": 3123 // 可选:HTTP传输的端口(默认:3123)
}
npm run build
npm start config.json
config.json
中指定的传输方式("http"或"stdio")启动。http://localhost:
/mcp
。