Crossref MCP Server

MIT License

Integrations

  • Allows interaction with the Crossref API to search for academic works by title or author, and retrieve detailed publication metadata using Digital Object Identifiers (DOIs).

Crossref MCP サーバー

Crossref API と対話するためのモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • タイトルで作品を検索
  • 著者による作品検索
  • DOIで作品の詳細を取得

インストール

{ "mcpServers": { "crossref": { "command": "npx", "args": [ "-y", "@botanicastudios/crossref-mcp" ] } } }

使用法

サーバーは 3 つの主なツールを提供します。

1. タイトルで検索

Crossref でタイトル別に作品を検索:

// Example: Search for works containing "quantum computing" in the title { "title": "quantum computing", "rows": 5 // Optional, defaults to 5 }

2. 著者で検索

Crossrefで著者別に作品を検索:

// Example: Search for works by "Einstein" { "author": "Einstein", "rows": 5 // Optional, defaults to 5 }

3. DOIで仕事を得る

DOI を使用して特定の作品を取得します。

// Example: Get work with DOI "10.1088/1742-6596/1398/1/012023" { "doi": "10.1088/1742-6596/1398/1/012023" }

応答フォーマット

すべての応答は、次の形式の構造化された JSON オブジェクトとして返されます。

検索が成功した場合:

{ "status": "success", "query": { /* the original query parameters */ }, "count": 5, "results": [ { "title": "Work title", "authors": [ { "given": "First name", "family": "Last name", "name": "First name Last name" } ], "published": { "dateParts": [2023, 1, 15], "dateString": "2023-1-15" }, "type": "journal-article", "doi": "10.xxxx/xxxxx", "url": "https://doi.org/10.xxxx/xxxxx", "container": "Journal Name", "publisher": "Publisher Name", "issue": "1", "volume": "42", "abstract": "This is the abstract of the work, if available." } // additional results... ] }

単一のDOI検索の場合:

{ "status": "success", "query": { "doi": "10.xxxx/xxxxx" }, "result": { // work details as shown above } }

エラーまたは結果がない場合:

{ "status": "error" | "no_results" | "not_found", "message": "Error message" | null, "query": { /* the original query parameters */ } }

テスト

サーバーには、Vitestを使用した包括的なテストスイートが付属しています。テストは利用可能なすべてのツールを網羅し、成功レスポンス、空の結果、エラー処理など、さまざまなシナリオが含まれています。

テストの実行

npm test

テスト構造

このテストでは、Vitestのモック機能を使用して、実際のネットワークリクエストを発行することなく、Crossref APIのレスポンスをシミュレートします。テストの構成は以下のとおりです。

  1. 模擬データ: タイトル検索、著者検索、DOI検索のサンプル応答
  2. モックハンドラー: mcp-server-test-handlers.js内のハンドラー関数のテストバージョン
  3. テストケース: すべてのツールを網羅するテスト:
    • 成功したAPIレスポンス
    • 空の結果セット
    • エラー処理とネットワーク障害

テストの拡張

テストケースを追加するには:

  1. 必要に応じてテストファイルに新しいモックデータを追加します
  2. 関連する記述ブロックに追加のテストケースを作成する
  3. mockFetchResponse()ヘルパーを使用して API レスポンスをシミュレートします

例:

it("should handle a new edge case", async () => { // Mock the response mockFetchResponse({ // Your sample response data }); // Call the handler const result = await handlers.searchByTitle({ title: "example" }); // Assert the expected results expect(result).toMatchObject({ // Expected response structure }); });
-
security - not tested
A
license - permissive license
-
quality - not tested

Crossref API にクエリを実行して、タイトル、著者、または DOI で学術出版物を検索し、学術作品に関する構造化されたメタデータを返すモデル コンテキスト プロトコル サーバー。

  1. 特徴
    1. インストール
      1. 使用法
        1. 1. タイトルで検索
        2. 2. 著者で検索
        3. 3. DOIで仕事を得る
      2. 応答フォーマット
        1. 検索が成功した場合:
        2. 単一のDOI検索の場合:
        3. エラーまたは結果がない場合:
      3. テスト
        1. テストの実行
        2. テスト構造
        3. テストの拡張

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        Semantic Scholar API, providing comprehensive access to academic paper data, author information, and citation networks.
        Last updated -
        22
        Python
        MIT License
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that provides access to the DBLP computer science bibliography database, allowing AI models to search publications, process citations, and generate accurate BibTeX entries.
        Last updated -
        6
        1
        Python
        MIT License
        • Apple
        • Linux
      • -
        security
        F
        license
        -
        quality
        A Model-Client-Protocol server that enables users to search the Gallica digital library of the National Library of France and generate structured sequential research reports with formatted citations and relevant images.
        Last updated -
        2
        Python
      • -
        security
        F
        license
        -
        quality
        Provides tools for accessing the Semantic Scholar API to search papers, retrieve paper and author details, and fetch citations and references through the Model Context Protocol.
        Last updated -
        1
        Python
        • Apple
        • Linux

      View all related MCP servers

      ID: 67odz8ewc2