MCP

MCP Integration

Give AI agents access to 500k+ arXiv papers via the Model Context Protocol. Our index includes all arXiv papers from 2025 onwards, plus highly-cited papers from earlier years. Connect Claude, Cursor, or any MCP client to search papers, fetch sections, and traverse citations.

What is MCP?

The Model Context Protocol is an open standard for connecting AI assistants to external data sources. ScienceStack provides an MCP server that exposes our paper database as tools that AI agents can call.

Quick Setup

You'll need an API key from Settings → API. Replace sk_live_your_key_here in the examples below.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "sciencestack": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://sciencestack.ai/api/mcp",
        "--header",
        "x-api-key:${SCIENCESTACK_API_KEY}"
      ],
      "env": {
        "SCIENCESTACK_API_KEY": "sk_live_your_key_here"
      }
    }
  }
}

Restart Claude Desktop after saving.

Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "sciencestack": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://sciencestack.ai/api/mcp",
        "--header",
        "x-api-key:${SCIENCESTACK_API_KEY}"
      ],
      "env": {
        "SCIENCESTACK_API_KEY": "sk_live_your_key_here"
      }
    }
  }
}

Claude Code

claude mcp add sciencestack \
  --transport http \
  --url https://sciencestack.ai/api/mcp \
  --header "x-api-key: sk_live_your_key_here"

HTTP (Direct)

curl -X POST https://sciencestack.ai/api/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "x-api-key: sk_live_your_key_here" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/list",
    "id": 1
  }'

Available Tools

ToolDescriptionBatch Limit
searchPapersSearch papers by keywords15 queries
getPaperOverviewGet paper structure and metadata25 papers
getNodesFetch specific sections/equations10 papers
getReferencesGet bibliography100 refs
getCitationsGet forward citations100 citations
getAuthorPapersGet papers by author100 papers
getArtifactsList curated research digests100 artifacts
getArtifactGet full digest content1 artifact
uploadPaperUpload your own TeX file for parsing1 file
getJobStatusPoll upload processing status1 job

CLI Alternative

For scripting workflows and token-efficient pipelines, consider the ScienceStack CLI:

pip install sciencestack

sciencestack search "attention mechanism" | jq '.data.papers[].title'
sciencestack nodes 1706.03762 --type equation | jq '.data.nodes[]'

The CLI outputs structured JSON envelopes, making it ideal for jq pipelines and shell scripts. MCP is better for interactive AI agents; CLI is better for automated workflows and reducing token usage.

HTML Fallback

When MCP quota is exhausted, agents can fetch individual paper elements as HTML pages:

https://sciencestack.ai/paper/1706.03762/eq/1   → Equation 1
https://sciencestack.ai/paper/1706.03762/fig/2  → Figure 2
https://sciencestack.ai/paper/1706.03762/sec/3  → Section 3

These pages render content with embedded metadata and don't require authentication. Use MCP for structured data and batch operations; use HTML fallback for quota-free access to individual elements.

Next Steps

    MCP Integration