Semantic Scholar Fastmcp MCP Server logo

Semantic Scholar Fastmcp MCP Server

Community
zongmin-yu

A FastMCP server implementation for the Semantic Scholar API, providing comprehensive access to academic paper data, author information, and citation networks.

Publisherzongmin-yu
Repositorysemantic-scholar-fastmcp-mcp-server
LanguagePython
Forks
24
Stars
165
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Semantic Scholar Fastmcp MCP Server 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

    165 stars and 24 forks from the linked repository.

MseeP.ai Security Assessment Badge

Semantic Scholar MCP Server

smithery badge

A FastMCP server implementation for the Semantic Scholar API, providing comprehensive access to academic paper data, author information, and citation networks.

Looking for Claude Code skills? Check out semantic-scholar-skills — the next-generation toolkit that bundles this MCP server with ready-to-use Claude Code skills (/expand-references, /trace-citations, /paper-triage) and a Python workflow engine.

Project Structure

The project has been refactored into a modular structure for better maintainability:

semantic-scholar-server/
├── semantic_scholar/            # Main package
│   ├── __init__.py             # Package initialization
│   ├── server.py               # Server setup and main functionality
│   ├── mcp.py                  # Centralized FastMCP instance definition
│   ├── config.py               # Configuration classes
│   ├── utils/                  # Utility modules
│   │   ├── __init__.py
│   │   ├── errors.py           # Error handling
│   │   └── http.py             # HTTP client and rate limiting
│   ├── api/                    # API endpoints
│       ├── __init__.py
│       ├── papers.py           # Paper-related endpoints
│       ├── authors.py          # Author-related endpoints
│       └── recommendations.py  # Recommendation endpoints
├── run.py                      # Entry point script

This structure:

  • Separates concerns into logical modules
  • Makes the codebase easier to understand and maintain
  • Allows for better testing and future extensions
  • Keeps related functionality grouped together
  • Centralizes the FastMCP instance to avoid circular imports

Features

  • Paper Search & Discovery

    • Full-text search with advanced filtering
    • Title-based paper matching
    • Paper recommendations (single and multi-paper)
    • Batch paper details retrieval
    • Advanced search with ranking strategies
  • Citation Analysis

    • Citation network exploration
    • Reference tracking
    • Citation context and influence analysis
  • Author Information

    • Author search and profile details
    • Publication history
    • Batch author details retrieval
  • Advanced Features

    • Complex search with multiple ranking strategies
    • Customizable field selection
    • Efficient batch operations
    • Rate limiting compliance
    • Support for both authenticated and unauthenticated access
    • Graceful shutdown and error handling
    • Connection pooling and resource management

System Requirements

  • Python 3.10+
  • Environment variable for API key (optional)

Installation

Quick Install (PyPI)

bash
pip install semantic-scholar-fastmcp

Or run directly with uvx:

bash
uvx semantic-scholar-fastmcp

MCP Client Configuration

For any MCP client that supports uvx:

json
{
  "mcpServers": {
    "semantic-scholar": {
      "command": "uvx",
      "args": ["semantic-scholar-fastmcp"],
      "env": {
        "SEMANTIC_SCHOLAR_API_KEY": "your-api-key-here"
      }
    }
  }
}

Installing via Smithery

To install Semantic Scholar MCP Server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install semantic-scholar-fastmcp-mcp-server --client claude

Manual Installation

  1. Clone the repository:
bash
git clone https://github.com/YUZongmin/semantic-scholar-fastmcp-mcp-server.git
cd semantic-scholar-fastmcp-mcp-server
  1. Install in development mode:
bash
pip install -e ".[dev]"
  1. Run the server:
bash
semantic-scholar-mcp-server

API Key (Optional)

To get higher rate limits and better performance:

  1. Get an API key from Semantic Scholar API
  2. Add it to your FastMCP configuration as shown above in the env section

If no API key is provided, the server will use unauthenticated access with lower rate limits.

Configuration

Contributing

See CONTRIBUTING.md.

Environment Variables

  • SEMANTIC_SCHOLAR_API_KEY: Your Semantic Scholar API key (optional)
    • Get your key from Semantic Scholar API
    • If not provided, the server will use unauthenticated access

HTTP Bridge (Built-in)

This repository includes a small HTTP bridge (semantic_scholar.bridge) that exposes a minimal REST API for common workflows.

Default listening port: 8000.

Bridge configuration via environment variables:

  • SEMANTIC_SCHOLAR_ENABLE_HTTP_BRIDGE (default: 1) — set to 0 to disable
  • SEMANTIC_SCHOLAR_HTTP_BRIDGE_HOST (default: 0.0.0.0)
  • SEMANTIC_SCHOLAR_HTTP_BRIDGE_PORT (default: 8000)

Available endpoints:

  • GET /v1/paper/search?q=... — paper search (params: fields, offset, limit)
  • GET /v1/paper/{paper_id} — paper details (param: fields)
  • POST /v1/paper/batch — batch paper details (JSON: { "ids": [ ... ] })
  • GET /v1/author/search?q=... — author search (params: fields, offset, limit)
  • GET /v1/author/{author_id} — author details (param: fields)
  • POST /v1/author/batch — batch author details (JSON: { "ids": [ ... ] })
  • GET /v1/recommendations?paper_id=... — recommendations for a paper

The bridge reuses the package's HTTP utilities (semantic_scholar.utils.http) so rate limits, API key handling and connection pooling remain consistent with the MCP tools.

Example:

bash
curl 'http://localhost:8000/v1/paper/search?q=machine+learning&limit=5'

Rate Limits

The server automatically adjusts to the appropriate rate limits:

With API Key:

  • Search, batch and recommendation endpoints: 1 request per second
  • Other endpoints: 10 requests per second

Without API Key:

  • All endpoints: 100 requests per 5 minutes
  • Longer timeouts for requests

Note: Rate limits are subject to change. See Semantic Scholar API for the latest information.

Semantic Scholar API Terms

This project uses the Semantic Scholar Academic Graph API, provided by the Allen Institute for AI (AI2). Please review the API License Agreement before use.

Available MCP Tools

The server currently exposes 16 MCP tools.

Note: All tools are aligned with the official Semantic Scholar API documentation. Please refer to the official documentation for detailed field specifications and the latest updates.

Paper Search Tools

  • paper_relevance_search: Search for papers using relevance ranking

    • Supports comprehensive query parameters including year range and citation count filters
    • Returns paginated results with customizable fields
  • paper_bulk_search: Bulk paper search with sorting options

    • Similar to relevance search but optimized for larger result sets
    • Supports sorting by citation count, publication date, etc.
  • paper_title_search: Find papers by exact title match

    • Useful for finding specific papers when you know the title
    • Returns detailed paper information with customizable fields
  • paper_details: Get comprehensive details about a specific paper

    • Accepts various paper ID formats (S2 ID, DOI, ArXiv, etc.)
    • Returns detailed paper metadata with nested field support
  • paper_batch_details: Efficiently retrieve details for multiple papers

    • Accepts up to 1000 paper IDs per request
    • Supports the same ID formats and fields as single paper details
  • paper_authors: Get the authors associated with a specific paper

    • Returns paginated author results for the paper
    • Supports author field customization with offset and limit controls
  • paper_autocomplete: Get paper title suggestions for a partial query

    • Returns minimal paper metadata for interactive search completion
    • Truncates overly long queries to the API-supported length
  • snippet_search: Search within paper snippets and excerpts

    • Returns relevant text matches from titles, abstracts, and body text
    • Supports filters for paper IDs, authors, venue, year, and field of study

Citation Tools

  • paper_citations: Get papers that cite a specific paper

    • Returns paginated list of citing papers
    • Includes citation context when available
    • Supports field customization and sorting
  • paper_references: Get papers referenced by a specific paper

    • Returns paginated list of referenced papers
    • Includes reference context when available
    • Supports field customization and sorting

Author Tools

  • author_search: Search for authors by name

    • Returns paginated results with customizable fields
    • Includes affiliations and publication counts
  • author_details: Get detailed information about an author

    • Returns comprehensive author metadata
    • Includes metrics like h-index and citation counts
  • author_papers: Get papers written by an author

    • Returns paginated list of author's publications
    • Supports field customization and sorting
  • author_batch_details: Get details for multiple authors

    • Efficiently retrieve information for up to 1000 authors
    • Returns the same fields as single author details

Recommendation Tools

  • get_paper_recommendations_single: Get recommendations based on a single paper

    • Returns similar papers based on content and citation patterns
    • Supports field customization for recommended papers
  • get_paper_recommendations_multi: Get recommendations based on multiple papers

    • Accepts positive and negative example papers
    • Returns papers similar to positive examples and dissimilar to negative ones

Usage Examples

Basic Paper Search

python
results = await paper_relevance_search(
    context,
    query="machine learning",
    year="2020-2024",
    min_citation_count=50,
    fields=["title", "abstract", "authors"]
)

Paper Recommendations

python
# Single paper recommendation
recommendations = await get_paper_recommendations_single(
    context,
    paper_id="649def34f8be52c8b66281af98ae884c09aef38b",
    fields="title,authors,year"
)

# Multi-paper recommendation
recommendations = await get_paper_recommendations_multi(
    context,
    positive_paper_ids=["649def34f8be52c8b66281af98ae884c09aef38b", "ARXIV:2106.15928"],
    negative_paper_ids=["ArXiv:1805.02262"],
    fields="title,abstract,authors"
)

Batch Operations

python
# Get details for multiple papers
papers = await paper_batch_details(
    context,
    paper_ids=["649def34f8be52c8b66281af98ae884c09aef38b", "ARXIV:2106.15928"],
    fields="title,authors,year,citations"
)

# Get details for multiple authors
authors = await author_batch_details(
    context,
    author_ids=["1741101", "1780531"],
    fields="name,hIndex,citationCount,paperCount"
)

Error Handling

The server provides standardized error responses:

python
{
    "error": {
        "type": "error_type",  # rate_limit, api_error, validation, timeout
        "message": "Error description",
        "details": {
            # Additional context
            "authenticated": true/false  # Indicates if request was authenticated
        }
    }
}

Use Semantic Scholar Fastmcp MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Semantic Scholar Fastmcp MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Semantic Scholar Fastmcp MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Semantic Scholar Fastmcp MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "semantic-scholar-fastmcp-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Semantic Scholar Fastmcp MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Semantic Scholar Fastmcp MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Semantic Scholar Fastmcp MCP Server to help me with this task?
Semantic Scholar Fastmcp MCP Server
Sure. I read it.
Here is what I found using Semantic Scholar Fastmcp MCP Server.

Frequently asked questions

What is the Semantic Scholar Fastmcp MCP Server MCP server used for?

Semantic Scholar Fastmcp MCP Server 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 Semantic Scholar Fastmcp MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Semantic Scholar Fastmcp MCP Server 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 Semantic Scholar Fastmcp MCP Server 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 Semantic Scholar Fastmcp MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Semantic Scholar Fastmcp MCP Server MCP to TypingMind?

Semantic Scholar Fastmcp MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Semantic Scholar Fastmcp MCP Server MCP provide in TypingMind?

Semantic Scholar Fastmcp MCP Server 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 Semantic Scholar Fastmcp MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Semantic Scholar Fastmcp MCP Server 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 👇