Semantic Scholarのロゴ

Semantic Scholar

コミュニティ
FujishigeTemma

Access Semantic Scholar's academic paper database through their API.

公開者FujishigeTemma
リポジトリsemantic-scholar-mcp
言語Python
フォーク
10
スター
10
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Semantic Scholarは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには10件のスターと10件のフォークがあります。

Semantic Scholar MCP Server

Note: A lightweight CLI alternative is available at semantic-scholar-cli. It is designed for LLM tool-use workflows with strict typed inputs, stable JSON envelopes, and small default payloads — usable without an MCP server.

A Model Context Protocol (MCP) server that provides access to Semantic Scholar's academic paper database through their API.

Features

  • Paper Search: Search for academic papers with filters for year, fields of study, and open access
  • Paper Details: Get comprehensive information about specific papers including abstracts, authors, and citation counts
  • Author Information: Retrieve detailed author data including affiliations, h-index, and citation metrics
  • Citation Export: Generate citations in multiple formats (BibTeX, APA, MLA, Chicago)

Usage

Get API Key

While the Semantic Scholar API can be used without authentication, having an API key provides higher rate limits. To get an API key:

  1. Visit Semantic Scholar API
  2. Request an API key

Add to Claude Code configuration

Run the following command to add the Semantic Scholar MCP server to your project-scope Claude Code configuration:

bash
claude mcp add semantic-scholar-mcp -s project -e SEMANTIC_SCHOLAR_API_KEY="your-api-key-here" -- uv run --with "git+https://github.com/FujishigeTemma/semantic-scholar-mcp" semantic-scholar-mcp serve

Or manually add it to your .mcp.json configuration file:

json
{
  "mcpServers": {
    "semantic-scholar-mcp": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "run",
        "--with",
        "git+https://github.com/FujishigeTemma/semantic-scholar-mcp",
        "semantic-scholar-mcp",
        "serve"
      ],
      "env": {
        "SEMANTIC_SCHOLAR_API_KEY": "your-api-key-here"
      }
    }
  }
}

Available Tools

  1. search_paper - Search for papers

    • Required: query (search terms)
    • Optional: fields, limit, offset, year, fieldsOfStudy, openAccessPdf
  2. get_paper - Get detailed paper information

    • Required: paper_id (supports multiple ID types: DOI, ArXiv ID, S2 Paper ID, etc.)
    • Optional: fields (customize returned data, see: Field Customization)
  3. get_authors - Get author information for a paper

    • Required: paper_id
    • Optional: fields, limit, offset
  4. get_citation - Generate formatted citations

    • Required: paper_id
    • Optional: format (bibtex, apa, mla, chicago)

CLI Examples

Search for papers:

bash
semantic-scholar-mcp tools search_paper "machine learning" --limit 5 --year "2020-2023"

Get paper details:

bash
semantic-scholar-mcp tools get_paper "10.1038/nature12373"

Get authors for a paper:

bash
semantic-scholar-mcp tools get_authors "649def34f8be52c8b66281af98ae884c09aef38b"

Generate BibTeX citation:

bash
semantic-scholar-mcp tools get_citation "649def34f8be52c8b66281af98ae884c09aef38b" --format bibtex

Field Customization

All tools support a fields parameter to customize the returned data. This allows you to request only the information you need, reducing response size and improving performance.

Paper Fields (for search_paper and get_paper)

Basic fields:

  • paperId - Unique paper identifier
  • title - Paper title
  • abstract - Paper abstract
  • year - Publication year
  • publicationDate - Full publication date

Author information:

  • authors - List of authors (returns authorId and name by default)
  • authors.authorId - Author's unique identifier
  • authors.name - Author's name
  • authors.affiliations - Author's institutional affiliations
  • authors.citationCount - Author's total citation count
  • authors.hIndex - Author's h-index

Citation and reference data:

  • citationCount - Number of times this paper has been cited
  • referenceCount - Number of references in this paper
  • citations - List of papers that cite this paper
  • references - List of papers referenced by this paper

Publication details:

  • journal - Journal information (name, volume, pages, etc.)
  • venue - Publication venue
  • publicationTypes - Types of publication (e.g., JournalArticle, Conference)
  • fieldsOfStudy - Academic fields (e.g., Computer Science, Medicine)
  • s2FieldsOfStudy - Semantic Scholar's field classifications

Additional metadata:

  • doi - Digital Object Identifier
  • arxivId - ArXiv identifier
  • url - Paper URL
  • openAccessPdf - Open access PDF information
  • embedding - Paper embedding vectors (for similarity analysis)

Author Fields (for get_authors)

  • authorId - Unique author identifier
  • name - Author's name
  • affiliations - Institutional affiliations
  • citationCount - Total citation count
  • hIndex - h-index metric
  • paperCount - Number of papers published
  • url - Author's profile URL

Example Field Usage

Get basic paper information:

bash
semantic-scholar-mcp tools search_paper "machine learning" --fields "paperId,title,year,citationCount"

Get detailed paper with author affiliations:

bash
semantic-scholar-mcp tools get_paper "10.1038/nature12373" --fields "title,abstract,authors.name,authors.affiliations,journal,year"

Get comprehensive author information:

bash
semantic-scholar-mcp tools get_authors "649def34f8be52c8b66281af98ae884c09aef38b" --fields "authorId,name,affiliations,citationCount,hIndex,paperCount"

Development

Setting up the development environment

bash
uv sync

uv run pytest tests/
uv run ruff format .
uv run ruff check . --fix
uv run ty check

Project Structure

semantic-scholar-mcp/
  src/
    semantic_scholar_mcp/
      __init__.py
      server.py      # Main server implementation
      cli.py         # CLI interface
  tests/                 # Test files
  pyproject.toml        # Project configuration
  README.md            # This file

API Rate Limits

  • Without API key: 100 requests per 5 minutes
  • With API key: 1 request per second (higher limits available on request)

Supported Paper ID Types

The API supports various paper identifier formats:

  • Semantic Scholar ID (e.g., "649def34f8be52c8b66281af98ae884c09aef38b")
  • DOI (e.g., "10.1038/nature12373")
  • ArXiv ID (e.g., "arXiv:2106.15928")
  • MAG ID
  • ACL ID
  • PubMed ID
  • Corpus ID

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Acknowledgments

This project uses the Semantic Scholar API to access academic paper data.

Semantic ScholarのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Semantic Scholarに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Semantic Scholarをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Semantic ScholarのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "semantic-scholar-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてSemantic ScholarのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Semantic ScholarのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Semantic Scholarを使ってこのタスクを手伝ってもらえますか?
Semantic Scholar
はい、読みました。
Semantic Scholarで調べた結果をお伝えします。

よくある質問

Semantic Scholar MCPサーバーは何に使いますか?

Semantic Scholarは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでSemantic Scholar MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでSemantic Scholarを利用できます。

TypingMindでSemantic Scholar MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Semantic Scholarを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Semantic Scholar MCPをTypingMindに接続するにはどうすればよいですか?

Semantic ScholarはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでSemantic Scholar MCPのどのようなツールを利用できますか?

Semantic ScholarはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Semantic Scholar MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Semantic Scholarで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇