Skip to main content
Glama
sandlong
by sandlong

x-search-mcp

xAI 서버 측 x_search 도구를 감싸는 가벼운 stdio MCP 래퍼입니다.

이 서버는 환경 변수에서 업스트림 구성을 읽고 각 search 호출을 OpenAI/xAI Responses 호환 엔드포인트로 전달합니다. 공식 xAI 엔드포인트와 동일한 Responses + x_search 프로토콜을 구현하는 CLIProxyAPI 같은 미들웨어 모두에서 작동하도록 설계되었습니다.

MCP 인터페이스

  • 서버 이름: x-search

  • 전송: stdio

  • 도구: search

도구 인수:

필드

필수

기본값

설명

query

Grok에 대한 검색 요청

allowed_x_handles

아니요

생략됨

최대 20개, excluded_x_handles와 상호 배타적

excluded_x_handles

아니요

생략됨

최대 20개, allowed_x_handles와 상호 배타적

from_date

아니요

생략됨

YYYY-MM-DD 포함

to_date

아니요

생략됨

YYYY-MM-DD 포함

enable_image_understanding

아니요

true

네이티브 x_search에 전달됨

enable_video_understanding

아니요

true

네이티브 x_search에 전달됨

핸들 필터 상태는 세 가지 중 하나입니다. 필터 없음(기본값), 허용 목록, 제외 목록. 두 목록을 모두 제공하면 거부됩니다.

Related MCP server: X Search MCP Server

환경

MCP 클라이언트는 생성된 프로세스에 정확히 세 가지 업스트림 설정을 제공합니다.

  • XAI_BASE_URL — 예: https://api.x.ai/v1 또는 /v1로 끝나는 OpenAI/xAI 호환 미들웨어 기본 URL

  • XAI_MODEL — 예: grok-4.6

  • XAI_API_KEY — 구성된 업스트림이 수락하는 Bearer 자격 증명

구현은 Responses API만 사용합니다. 네이티브 x_search 도구 하나를 보내고 tool_choice: "required"로 도구 사용을 강제합니다.

설치 / 실행

stdio MCP 서버를 지원하는 클라이언트의 경우 GitHub에서 직접 실행합니다.

npx -y github:sandlong/x-search-mcp

그리고 해당 MCP 서버의 env 구성에 세 변수를 제공합니다. 예:

{
  "command": "npx",
  "args": ["-y", "github:sandlong/x-search-mcp"],
  "env": {
    "XAI_BASE_URL": "https://api.x.ai/v1",
    "XAI_MODEL": "grok-4.6",
    "XAI_API_KEY": "..."
  }
}

개발

npm install
npm run typecheck
npm test
npm run build

동작

  • Chat Completions 호환성 레이어가 없습니다.

  • 결과 재작성이나 인용 정리는 없습니다. xAI/미들웨어 출력 텍스트는 수신된 그대로 반환됩니다.

  • 2xx가 아닌 업스트림 응답 본문은 MCP 클라이언트에 그대로 반환됩니다.

  • HTTP 서버, 데이터베이스 또는 영구 상태가 없습니다.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    A
    maintenance
    Live X (Twitter) and web search for any coding agent through your existing Grok subscription. Exposes a grok_search MCP tool, so no X API key or X developer account is needed.
    31
    25
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables searching X (Twitter) posts, discussions, trends, and web content via Grok API using natural language.
    23
    1
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    MCP server for live X/Twitter and web search, driven by your locally logged-in Grok CLI and leveraging your X Premium or SuperGrok subscription quota.
    3
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Agentic search over your Dewey document collections from any MCP-compatible client.

  • Serper MCP — wraps the Serper Google Search API (serper.dev)

  • x402-gated web search gateway. Tools: search, search_enriched.

View all MCP Connectors

Latest Blog Posts

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/sandlong/x-search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server