Episkey-G/GrokSearch-rs
FreeRust 编写的 MCP 服务器,提供 Grok 联网搜索与 Tavily 支持的来源检索,为 AI 代理补充实时网络信息。
About Episkey-G/GrokSearch-rs
GrokSearch-rs is a lightweight Rust-based MCP (Model Context Protocol) server that provides Grok and OpenAI-compatible web search capabilities, along with Tavily fetch/map and Firecrawl fallback for source retrieval. It is designed to supplement AI agents with real-time web information, offering tools such as web_search, get_sources, web_fetch, web_map, and doctor. The server supports two upstream transports: native xAI Responses API and any OpenAI-compatible chat completions gateway, selectable via environment variables. Key features include response budgeting to keep responses within agent context limits, structured web_fetch with specialist extractors for GitHub issues/PRs, StackExchange, arXiv, and Wikipedia, optional Grok OAuth mode for API key-less operation, optional remote mode via Streamable HTTP for mobile/multi-device access, and comma-separated Tavily API keys with round-robin failover. Installation is easy via npm (npm install -g grok-search-rs), and the server can be run locally over stdio or as a remote service.
Key Features
Pros & Cons
- Lightweight and performant (built in Rust)
- Supports both xAI and OpenAI-compatible transport protocols
- Structured extraction for common websites reduces noise
- Response budgeting and caching optimize token usage and latency
- OAuth mode eliminates need for an API key
- Remote HTTP mode enables mobile and multi-client access
- Automatic fallback chain (Tavily -> Firecrawl) increases reliability
- Easy npm installation with native binary
- X/Twitter search is only available with the xAI Responses transport, not OpenAI-compatible
- Requires valid API keys for Grok and Tavily (or Tavily + Firecrawl) for full functionality
- Firecrawl is only a fallback, not configurable as primary source
- No built-in support for other search engines (Google, Bing, etc.)
- Not a standalone application; requires an MCP client to launch