MG

mochow13/google-scholar-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

26 stars 7 forks 品質 45 トレンド 11

ストリーミング可能な HTTP で TypeScript で書かれている Google Scholar 用の MCP サーバー

概要

ストリーム可能な HTTP トランスポートを介して Google Scholar 検索機能を提供するモデルコンテキストプロトコル (MCP) サーバー。 このプロジェクトでは、カスタムツールを使用してMCPサーバーを構築し、GoogleのGeminiのようなAIモデルと統合する方法を説明します。 このプロジェクトは、2つの主要なコンポーネントで構成されます: - : HTTP エンドポイント経由で Google Scholar の検索ツールを提供 - : クエリと呼び出しツールを処理するために Google Gemini AI と統合 サーバは @modelcontextprotocol/sdk を使用してビルドされ、次のように実装します。 - : HTTP ベースの通信のための StreamableHTTPServerTransport - : セッション ID と複数の同時接続をサポート - : 拡張可能なツールの登録と実行フレームワーク - : 包括的なエラー応答とロギング サーバは、現在1つのメインツールを提供しています。 - : 学術論文や研究のためのGoogleスカラーを検索 - : 設定可能な検索パラメータ(クエリ、フィルタなど).

概要(AI 翻訳)

ストリーム可能な HTTP トランスポートを介して Google Scholar 検索機能を提供するモデルコンテキストプロトコル (MCP) サーバー。 このプロジェクトでは、カスタムツールを使用してMCPサーバーを構築し、GoogleのGeminiのようなAIモデルと統合する方法を説明します。

概要

このプロジェクトは、2つの主要なコンポーネントで構成されています。

  • MCP Server:HTTPエンドポイント経由でGoogle Scholar検索ツールを提供 -MCP Client:Google Gemini AIと統合して、クエリと呼び出しツールを処理する

アーキテクチャ

MCP サーバーの実装

@modelcontextprotocol/sdk を使用してサーバーをビルドし、以下を実行します。

-Transport: HTTPベースの通信用の StreamableHTTPServerTransport

  • セッション管理: セッションIDで複数の同時接続をサポート
  • ツールシステム:拡張可能なツール登録と実行フレームワーク -エラー処理: 包括的なエラー応答とロギング

利用可能なツール

サーバは、現在1つのメインツールを提供しています。

####[search_google_scholar

  • 説明:学術論文や研究のためのGoogleスカラーを検索 -パラメータ: 設定可能な検索パラメータ(クエリ、フィルタなど) -Returns:紙の細部と構造化された検索結果

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Google Scholar MCP Server

A Model Context Protocol (MCP) server that provides Google Scholar search capabilities through a streamable HTTP transport. This project demonstrates how to build an MCP server with custom tools and integrate it with AI models like Google’s Gemini.

Overview

This project consists of two main components:

  • MCP Server: Provides Google Scholar search tools via HTTP endpoints
  • MCP Client: Integrates with Google Gemini AI to process queries and call tools

Architecture

MCP Server Implementation

The server is built using the @modelcontextprotocol/sdk and implements:

  • Transport: StreamableHTTPServerTransport for HTTP-based communication
  • Session Management: Supports multiple simultaneous connections with session IDs
  • Tool System: Extensible tool registration and execution framework
  • Error Handling: Comprehensive error responses and logging

Available Tools

The server currently provides one main tool:

search_google_scholar

  • Description: Search Google Scholar for academic papers and research
  • Parameters: Configurable search parameters (query, filters, etc.)
  • Returns: Structured search results with paper details

Transport Protocol

The server uses StreamableHTTPServerTransport which supports:

  • HTTP POST: For sending requests and receiving responses
  • HTTP GET: For establishing Server-Sent Events (SSE) streams
  • Session Management: Persistent connections with unique session IDs
  • Real-time Notifications: Streaming updates via SSE

Smithery

The server is now available in Smithery: Google Scholar Search Server

Installation

Installing via Smithery

To install google-scholar-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @mochow13/google-scholar-mcp --client claude
  1. Clone the repository:
git clone 
cd google-scholar-mcp
  1. Install and build:
cd server
npm install
npm run build

cd client
npm install
npm run build

Running the Server

  1. Start the MCP server:
cd server
node build/index.js

The server will start on port 3000 and provide the following endpoints:

  • POST /mcp - Main MCP communication endpoint
  • GET /mcp - SSE stream endpoint for real-time updates

Server Features

  • Multi-session Support: Handle multiple clients simultaneously
  • Graceful Shutdown: Proper cleanup on SIGINT
  • Logging: Comprehensive request/response logging
  • Error Handling: Structured JSON-RPC error responses

Running the Client

The client demonstrates how to integrate the MCP server with Google’s Gemini AI model.

GitHub で README 全文を見る

インストール

npx -y @smithery/cli install @mochow13/google-scholar-mcp --client claude
MCP 初心者?mcpskill.org のガイドから始めましょう →