Skip to main content
Glama
GPT Research MCP Server

GPT Research MCP Server

by testusuke

GPT Research MCP Server

OpenAI GPT-5.1 の Responses API と組み込み Web Search ツールを活用したリサーチ MCP サーバーです。

機能

  • research(query): GPT-5.1 の Web Search 機能を使用してクエリを調査し、引用情報付きの結果を返します

Related MCP server: MCP Deep Search

必要要件

  • Python 3.12+

  • uv パッケージマネージャー

  • OpenAI API キー

セットアップ

1. リポジトリのクローン

git clone https://github.com/your-username/gpt-research-mcp.git
cd gpt-research-mcp

2. 依存関係のインストール

uv sync

3. 環境変数の設定

export OPENAI_API_KEY="sk-..."

カスタムエンドポイントの使用(オプション)

OpenAI 互換 API(Azure OpenAI、ローカル LLM など)を使用する場合は、OPENAI_BASE_URL を設定します:

export OPENAI_BASE_URL="https://your-custom-endpoint.com/v1"

設定しない場合は、デフォルトの https://api.openai.com/v1/ が使用されます。

4. LangFuse トレーシング(オプション)

LangFuse を使用して OpenAI API 呼び出しの可観測性を有効にできます。以下の環境変数をすべて設定すると自動的に有効化されます:

export LANGFUSE_SECRET_KEY="sk-lf-..."
export LANGFUSE_PUBLIC_KEY="pk-lf-..."
export LANGFUSE_BASE_URL="https://cloud.langfuse.com"  # EU region
# export LANGFUSE_BASE_URL="https://us.cloud.langfuse.com"  # US region

環境変数が設定されていない場合は、通常の OpenAI SDK が使用されます。

MCP サーバーとしてのインストール

Claude Code への登録

claude mcp add gpt-research -- uv run --directory /path/to/gpt-research-mcp main.py

または ~/.claude/settings.json に直接追加:

{
  "mcpServers": {
    "gpt-research": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/gpt-research-mcp", "main.py"],
      "env": {
        "OPENAI_API_KEY": "sk-...",
        "OPENAI_BASE_URL": "https://api.openai.com/v1/"
      }
    }
  }
}

OPENAI_BASE_URL はオプションです。カスタムエンドポイントを使用しない場合は省略可能です。

/path/to/gpt-research-mcp を実際のパスに置き換えてください。

使用方法

スタンドアロン実行

uv run python main.py

MCP ツールとして使用

MCP クライアント(Claude Desktop 等)から research ツールを呼び出します:

research("2024年の AI トレンドについて教えてください")

ツール仕様

research(query: str) -> str

パラメータ

型

説明

query

str

調査したい質問やトピック

戻り値: GPT-5.1 が生成したリサーチ結果(引用情報を含む)

技術スタック

コンポーネント

技術

パッケージ管理

uv

Python バージョン

3.12

MCP フレームワーク

FastMCP 2.0

OpenAI クライアント

openai (公式ライブラリ)

モデル

gpt-5.1

トレーシング(オプション)

LangFuse

Available Tools

1 tool
researchC

Ask questions, search for information, or consult about complex problems in English.

Inputs: query (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'research' has a clearly defined purpose, so an agent cannot misselect between non-existent alternatives.

    Naming Consistency5/5

    A single tool inherently exhibits perfect naming consistency, as there are no other tools to compare it against for patterns or conventions. The name 'research' is straightforward and follows a simple verb-based naming style.

    Tool Count2/5

    One tool is too few for a server named 'GPT Research MCP Server', which suggests a research-oriented domain that typically requires multiple operations (e.g., search, summarize, cite, query). A single tool feels thin and under-scoped for such a purpose, limiting functionality.

    Completeness2/5

    The tool surface is severely incomplete for a research server. While 'research' covers general inquiry, there are obvious gaps such as specialized search, result filtering, citation management, or data analysis tools that would be expected in this domain, likely causing agent failures in complex tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to perform real-time web searches, company research, content crawling, LinkedIn searches, and deep research using the Exa AI Search API. Provides comprehensive web information retrieval capabilities in a safe and controlled manner.
      2
      1
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables deep web search across multiple providers including Google, Bing, Brave, DuckDuckGo, and Perplexity, with support for comprehensive AI-powered research using intelligent multi-engine queries.
      2
      91 npm
      9
      MIT
    • F
      license
      A
      quality
      Not graded
      maintenance
      Enables AI assistants to perform comprehensive research by searching Google, mining Reddit discussions, scraping web content with JS rendering, and synthesizing findings with citations into structured context.
      5
      165 npm
      3
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides intelligent web search capabilities using OpenAI's Web Search API with reasoning models. Supports localized results, multiple model options, and automatic source citations for current information retrieval.
      MIT