MCP

MCP Integration

Give AI agents access to 300k+ 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

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

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