contextX logo

contextX

Community
KayanoLiam

A free remote MCP server offering normal (Grok 4.3) and deep (Grok 4.20 Multi-Agent) search. No API keys required, streaming support prevents gateway timeouts.

PublisherKayanoLiam
RepositoryContextX
LanguageRust
Forks
7
Stars
171
Available tools
0
Transport typestreamable-http
Categories
Links
  • Connect tools to AI workflows

    contextX exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    171 stars and 7 forks from the linked repository.

contextX

日本語 | 简体中文 | English

contextXは、Grok 4.3による通常検索とGrok 4.20 Multi-Agent 0309による深度検索を提供するリモートMCPサーバーです。

MCPクライアントから受け取った検索クエリをOpenAI互換のResponses APIへストリーミング送信し、回答本文をMCPのツール結果として返します。上流ストリームを継続的に受信することで、検索処理中に発生するゲートウェイの待機タイムアウトを抑制します。利用者がモデルを変更することはできません。

公開エンドポイント: https://mcp.twitter.monster/mcp

MCPクライアントへの追加

contextXはリモートMCPサーバーです。利用者側でバイナリをインストールしたり、APIキーを用意したりする必要はありません。

Pi Agent

Pi本体にはMCP機能が組み込まれていないため、最初にMCPアダプターをインストールします。

bash
pi install npm:pi-mcp-adapter

Piを再起動し、~/.config/mcp/mcp.jsonのmcpServersへ次の設定を追加します。既存のMCP設定がある場合は上書きせず、contextXの項目だけをマージしてください。

json
{
  "mcpServers": {
    "contextX": {
      "url": "https://mcp.twitter.monster/mcp",
      "lifecycle": "lazy",
      "requestTimeoutMs": 360000
    }
  }
}

Piで接続を確認します。

text
/mcp reconnect contextX

Pi Subagents

pi-subagentsでtoolsを宣言した子エージェントは厳格な許可リストを使用するため、親エージェントのMCPツールを自動継承しません。ウェブアクセスが必要なagent定義へmcp:contextXを追加するか、~/.pi/agent/settings.jsonで組み込みagentを上書きしてください。

json
{
  "subagents": {
    "agentOverrides": {
      "researcher": {
        "tools": ["read", "write", "intercom", "mcp:contextX"]
      }
    }
  }
}

ウェブアクセスが必要な他のagentにもmcp:contextXを追加します。最初に/mcp reconnect contextXでツールキャッシュを作成してからPiを再起動してください。子エージェントではcontextX_grok_searchとcontextX_grok_deep_searchを直接利用できます。

Claude Code

bash
claude mcp add --transport http contextX https://mcp.twitter.monster/mcp

Claude Code内の/mcpで接続状態を確認できます。

Cursor

ユーザー全体の~/.cursor/mcp.json、またはプロジェクト内の.cursor/mcp.jsonへ追加します。

json
{
  "mcpServers": {
    "contextX": {
      "url": "https://mcp.twitter.monster/mcp"
    }
  }
}

その他のMCPクライアント

Streamable HTTP対応クライアントに、次のURLをリモートMCPサーバーとして登録してください。認証ヘッダーやトークンは不要です。

text
https://mcp.twitter.monster/mcp

セルフホスト

以下は、自分のAPIキーを使ってcontextXサーバーを運用する場合の手順です。

ディレクトリ構成

text
src/
├── main.rs    # エントリーポイント
├── config.rs  # 環境変数と起動設定
├── grok.rs    # Grok上流APIクライアント
├── mcp.rs     # MCPツールとサーバー情報
└── server.rs  # Streamable HTTPサーバー

セットアップ

.env.exampleをコピーします。

bash
cp .env.example .env

.envに上流APIキーとResponses APIの完全なエンドポイントを設定してください。実際の上流URLをソースコードや公開リポジトリへ記載しないでください。

env
GROK_API_KEY=your-api-key
GROK_UPSTREAM_URL=https://your-upstream.example/v1/responses
GROK_DEEP_API_KEY=your-deep-search-api-key
GROK_DEEP_UPSTREAM_URL=https://your-deep-upstream.example/v1/responses

起動

bash
cargo run

デフォルトでは次のURLで待ち受けます。

text
MCP:    http://127.0.0.1:3000/mcp
Health: http://127.0.0.1:3000/health

環境変数

変数必須説明
GROK_API_KEYはい通常検索上流APIのBearerトークン
GROK_UPSTREAM_URLはい通常検索上流のResponses APIエンドポイント
GROK_DEEP_API_KEYはい深度検索上流APIのBearerトークン
GROK_DEEP_UPSTREAM_URLはい深度検索上流のResponses APIエンドポイント
BIND_ADDRいいえサーバーの待受アドレス。デフォルトは0.0.0.0:3000
MCP_ALLOWED_HOSTSいいえ受け入れるHostのカンマ区切りリスト

公開時はMCP_ALLOWED_HOSTSに実際のドメインを追加してください。

env
MCP_ALLOWED_HOSTS=localhost,127.0.0.1,::1,mcp.twitter.monster

MCPツール

公開サービスでは、どちらのツールも認証や利用回数制限なしで利用できます。モデルや設定ファイルを変更する必要はなく、利用者が依頼内容によって検索方法を選択できます。

grok_search

Grok 4.3で高速な通常検索を実行します。日常的な質問や簡単な情報確認に適しています。

入力例:

json
{
  "query": "Rustの最新安定版について調べてください"
}

grok_deep_search

Grok 4.20 Multi-Agent 0309で包括的な深度検索を実行します。通常検索より時間がかかるため、詳細な調査が必要な場合に使用してください。

入力例:

json
{
  "query": "Rustの非同期ランタイムについて複数の情報源を比較し、詳細に調査してください"
}

MCPクライアントでは、「深度検索を使用してください」と明示することで深度検索ツールを選択できます。

セキュリティ

  • 上流APIキーはサーバー側だけに保存します。
  • .envはGitの管理対象外です。
  • 現在、MCP利用者に対する認証は行いません。

友情链接

Installation

TypingMind
{
  "mcpServers": {
    "contextx": {
      "url": "https://mcp.twitter.monster/mcp"
    }
  }
}

Use contextX MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once contextX is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP connects through a hosted MCP server URL in TypingMind.

Add an MCP server URL

Use this when contextX is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter https://mcp.twitter.monster/mcp in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste https://mcp.twitter.monster/mcp into the Server URL field.
  2. Enter a connection name for contextX.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the contextX connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the contextX tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the contextX tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use contextX to help me with this task?
contextX
Sure. I read it.
Here is what I found using contextX.

Frequently asked questions

What is the contextX MCP server used for?

contextX is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use contextX MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use contextX with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use contextX MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With contextX connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect contextX MCP to TypingMind?

contextX can be connected in TypingMind by adding its hosted MCP server URL. This is useful when you want a remote MCP connection that is available from your TypingMind workspace.

What tools does contextX MCP provide in TypingMind?

contextX exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use contextX MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If contextX requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇