Skip to main content
Glama

Asta MCP Servers

MCP wrappers for Allen AI's Asta research tools — making CLI-only capabilities accessible to any chatbot or AI agent via the Model Context Protocol.

Python 3.11+ License: Apache 2.0 Tests MCP Compatible


Why This Exists

Allen AI's Asta ecosystem provides powerful research tools, but some are only available as CLI commands (via asta-plugins). This project wraps those CLI-only tools as MCP servers, so any MCP-compatible chatbot or agent can use them — not just agents with Bash access.

Already covered by official MCP servers (not duplicated here):

This project wraps what has no MCP equivalent:

  • Document collection management (asta-documents CLI)

  • Deep literature search, report generation, PDF extraction, theory synthesis (Paper Finder API + Remote OCR API)


Architecture

                        +-------------------+
                        |    MCP Client     |
                        | (ChatGPT, Claude, |
                        |  Cursor, etc.)    |
                        +--------+----------+
                                 | stdio
                    +------------+------------+
                    |                         |
           +-------v--------+       +--------v-------+
           |  asta-library   |       |  asta-reports  |
           |   (5 tools)     |       |   (4 tools)    |
           +-------+--------+       +--+----------+--+
                   |                    |          |
                   v                    v          v
           +-------------+      +----------+ +--------+
           |asta-documents|      |Paper     | |Remote  |
           |CLI (local)   |      |Finder API| |OCR API |
           +------+------+      +-----+----+ +---+----+
                  |                    |          |
            Local filesystem     Asta Gateway
                            (asta-gateway.apps.allenai.org)

Quick Start

1. Install

uv pip install git+https://github.com/maxwellsdm1867/asta-mcp.git

# Or with pip
pip install git+https://github.com/maxwellsdm1867/asta-mcp.git

Prerequisites: Python 3.11+

2. Authenticate (required for asta-reports)

# Option A: Use the Asta CLI (install from https://github.com/allenai/asta-plugins)
asta auth login

# Option B: Set a token directly
export ASTA_TOKEN="your-bearer-token"

Note: asta-library works locally without auth. asta-reports requires auth for the Paper Finder and OCR APIs.

3. Configure your MCP client (see Configuration below)


Servers

asta-library — 5 tools

MCP wrapper for the asta-documents CLI. Manages a local collection of research documents with search, tagging, and metadata.

CLI equivalent: asta documents ... (requires Bash access) This MCP server: makes it available to any MCP client

Tool

Description

add_document

Save a paper to the local index with URL, title, summary, tags, and MIME type

search_documents

Search your collection by content and tags

list_documents

Browse all saved documents, optionally filtered by tags

get_document

Get full metadata for a document by its 10-character ID

manage_tags

Add or remove tags on any document in the collection

Example prompt: "Save that paper to my library with the tags 'RAG' and 'NLP', then show me everything tagged 'RAG'."

Requires: asta-resource-repository (pip install asta-resource-repository). Falls back to uvx if not installed.


asta-reports — 4 tools

MCP wrapper for the Asta Paper Finder API and Remote OCR API. Provides deep literature search, structured report generation, PDF text extraction, and hypothesis synthesis.

CLI equivalents: asta literature find ..., asta pdf-extraction remote ... (require Bash access) This MCP server: makes them available to any MCP client, plus adds report generation and theory synthesis

Tool

Description

find_literature

AI-powered deep paper search with fast/diligent modes (30-60s)

generate_report

Synthesize a structured markdown literature review with references

extract_pdf_text

OCR and extract text from local PDFs, returned as markdown

generate_theory

Generate a hypothesis with supporting evidence and identified research gaps

Example prompt: "Generate a literature review on transformer efficiency methods with up to 20 papers, then extract the text from ~/Downloads/flash-attention.pdf."


What to Use for What

Need

Use

Paper search, citations, authors, passage-level snippets

Official Asta MCP (asta-tools.allen.ai/mcp/v1)

Run computational experiments

Panda's MCP server

Manage a local paper collection

asta-library (this project)

Deep literature search + reports + PDF extraction

asta-reports (this project)

All of the above via CLI

asta-plugins


Configuration

Claude Code

{
  "mcpServers": {
    "asta-library": {
      "command": "asta-library-mcp"
    },
    "asta-reports": {
      "command": "asta-reports-mcp"
    }
  }
}

Cursor

{
  "mcpServers": {
    "asta-library": {
      "command": "asta-library-mcp",
      "args": []
    },
    "asta-reports": {
      "command": "asta-reports-mcp",
      "args": []
    }
  }
}

Generic MCP Client

asta-library-mcp        # Document collection management
asta-reports-mcp        # Deep search, reports, PDF, theories

# Or as Python modules:
python -m asta_library
python -m asta_reports

Environment Variables

Variable

Required

Default

Description

ASTA_TOKEN

For asta-reports

--

Bearer token for the Asta gateway

ASTA_TOOL_KEY

No

--

Alternative auth via Semantic Scholar API key

ASTA_GATEWAY_URL

No

https://asta-gateway.apps.allenai.org

Base URL for the Asta gateway

ASTA_DOCUMENT_ROOT

No

~/.asta/documents

Root directory for the local document index


Development

git clone https://github.com/maxwellsdm1867/asta-mcp.git
cd asta-mcp
uv venv && source .venv/bin/activate
uv pip install -e ".[all,dev]"
pytest tests/ -v
ruff check .

Project Structure

asta-mcp/
  asta_library/        # Local document management (5 tools)
    server.py
    auth.py
  asta_reports/        # Deep search, reports, PDF, theories (4 tools)
    server.py
    auth.py
  tests/
  pyproject.toml

Built with FastMCP 3.x.


License

Apache License 2.0

Credits

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maxwellsdm1867/asta-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server