artl-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@artl-mcp Search Europe PMC for papers about CRISPR"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ARTL-MCP: All Roads to Literature
An MCP (Model Context Protocol) server and CLI toolkit for comprehensive scientific literature retrieval and analysis using PMIDs, DOIs, PMCIDs, and keyword searches.
Requirements
Python: 3.11 or later
uv: Python package installer (install guide)
π New to artl-mcp? See PREREQUISITES.md for detailed setup instructions including Python/uv installation, MCP client setup, and more.
Related MCP server: pubmed-mcp-server
Three Ways to Use ARTL-MCP
1. CLI Only (FREE - No AI Required)
Use directly from command line with just Python + uv:
uvx --from artl-mcp artl-cli get-doi-metadata --doi "10.1038/nature12373"β No installation, no API keys, no costs
β Direct access to literature databases
β Perfect for scripting and automation
2. MCP with AI Assistant (Recommended)
Use with any MCP-compatible AI assistant for natural language queries:
Claude Desktop (most popular)
Goose Desktop
Zed Editor
Continue (VS Code)
Any MCP-compatible tool
Note: You can use ANY MCP client - not just Claude! See PREREQUISITES.md for setup guides.
3. Development (Optional)
For contributors working on artl-mcp itself. See DEVELOPERS.md.
Quick Start
MCP Server with AI Assistant
Example: Claude Desktop (works with any MCP client)
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"artl-mcp": {
"command": "uvx",
"args": ["artl-mcp"]
}
}
}Then ask Claude: "Search Europe PMC for papers about CRISPR"
Other MCP clients: Goose, Zed, Continue, etc. also work! See PREREQUISITES.md for setup guides for each client.
Standalone CLI
# Install and use CLI commands
uvx --from artl-mcp artl-cli get-doi-metadata --doi "10.1038/nature12373"
uvx --from artl-mcp artl-cli search-papers-by-keyword --query "CRISPR gene editing" --max-results 5Core Features
π Literature Search & Discovery
Keyword-based paper search with advanced filtering
Recent publication discovery
PubMed search with multiple output formats
π Metadata & Content Retrieval
DOI/PMID/PMCID metadata extraction
Abstract retrieval from PubMed
Full-text access via multiple sources:
PMC (PubMed Central) - MCP + CLI
Unpaywall - MCP + CLI
Europe PMC - MCP + CLI
BioC XML format - CLI only
PDF text extraction and processing
π Identifier Management
Universal identifier conversion (DOI β PMID β PMCID)
Support for multiple input formats (URLs, CURIEs, raw IDs)
Comprehensive identifier validation
π Citation Networks
Reference analysis (papers cited BY a given paper)
Citation analysis (papers that CITE a given paper)
Citation data from CrossRef (when citation tools are enabled)
Related paper discovery through citation networks
πΎ File Management
MCP Mode: Returns data directly without file saving (optimal for AI assistants)
CLI Mode: Full file saving with path reporting and content management
Content size management - large content automatically handled appropriately
Memory-efficient streaming for large files (PDFs, datasets)
Cross-platform filename sanitization
Multiple output formats (JSON, TXT, CSV, PDF) in CLI mode
Configurable directories and temp file management in CLI mode
Available MCP Tools
When running as an MCP server, you get access to 6 core tools. Note: 33 additional tools are currently disabled pending testing and stabilization (see Issues #210, #212).
π MCP vs CLI Mode Differences
MCP Mode (AI assistants): Returns data directly without file saving:
{
"data": { /* tool-specific content */ },
"mcp_mode": true,
"note": "Data returned directly - use CLI for file saving"
}CLI Mode (command line): Full file saving with path reporting:
{
"data": { /* tool-specific content */ },
"saved_to": "/path/to/saved/file.json"
}Currently Active MCP Tools (6):
search_europepmc_papers- Search Europe PMC database for papersget_europepmc_paper_by_id- Get full metadata from Europe PMC by IDget_all_identifiers_from_europepmc- Universal ID translation via Europe PMCget_europepmc_full_text- Retrieve full text from Europe PMCget_europepmc_pdf_as_markdown- Convert Europe PMC PDFs to Markdownget_pmc_supplemental_material- Get supplementary materials from PMC
Disabled/Unavailable MCP Tools (33 tools - see issues):
The following tools are implemented but currently disabled (commented out in main.py):
β Citation analysis tools (4 tools) - Issue #210
β BioC full text tool (1 tool) - Issue #213
β DOI metadata tools (3 tools) - Issue #212
β Identifier conversion tools (4 tools) - Issue #212
β PubMed abstract/text retrieval (5 tools) - Issue #212
β PDF extraction tools (3 tools) - Issue #212
β Search tools (2 tools) - Issue #212
β Other tools (11 tools) - Issue #212
Note: CLI has 23 active commands, many corresponding to these disabled MCP tools.
CLI Commands
The artl-cli command provides access to all functionality. When using uvx, specify the package name:
# Metadata retrieval
uvx --from artl-mcp artl-cli get-doi-metadata --doi "10.1038/nature12373"
uvx --from artl-mcp artl-cli get-abstract-from-pubmed-id --pmid "23851394"
# Literature search
uvx --from artl-mcp artl-cli search-papers-by-keyword --query "machine learning" --max-results 10
uvx --from artl-mcp artl-cli search-recent-papers --query "COVID-19" --years-back 2
# Full text (requires email for some sources)
uvx --from artl-mcp artl-cli get-full-text-from-doi --doi "10.1038/nature12373" --email "user@institution.edu"
# Identifier conversion
uvx --from artl-mcp artl-cli doi-to-pmid --doi "10.1038/nature12373"
uvx --from artl-mcp artl-cli get-all-identifiers-from-europepmc --identifier "PMC3737249"Note: Citation analysis tools are currently unavailable in both MCP and CLI. See Issue #210 for updates.
Note for local development: If you have the package installed locally with uv sync, you can use uv run artl-cli directly without the --from flag.
Configuration
Email Requirements
Several APIs require institutional email addresses.
β οΈ Important: Replace example emails with your actual institutional email address.
export ARTL_EMAIL_ADDR="researcher@university.edu" # Replace with your real email
# or create local/.env file with: ARTL_EMAIL_ADDR=researcher@university.eduMCP Client Configuration: Different MCP clients support configuration injection. ARTL-MCP's enhanced configuration system provides multiple methods for email setup:
Claude Desktop: Inherits system environment variables automatically
Goose Desktop: Requires MCP extension configuration (see USERS.md)
Other clients: May support client-specific configuration injection
See USERS.md for comprehensive configuration instructions.
File Output (CLI Mode Only)
Configure where files are saved when using CLI commands:
export ARTL_OUTPUT_DIR="~/Papers" # Default: ~/Documents/artl-mcp
export ARTL_TEMP_DIR="/tmp/my-artl-temp" # Default: system temp + artl-mcp
export ARTL_KEEP_TEMP_FILES=true # Default: falseNote: MCP mode returns data directly without file saving.
Supported Identifier Formats
DOI: 10.1038/nature12373, doi:10.1038/nature12373, https://doi.org/10.1038/nature12373
PMID: 23851394, PMID:23851394, pmid:23851394
PMCID: PMC3737249, 3737249, PMC:3737249
All tools automatically detect and normalize identifier formats.
Development Setup
# Clone and install
git clone https://github.com/contextualizer-ai/artl-mcp.git
cd artl-mcp
uv sync --group dev
# Run CLI commands during development
uv run artl-cli --help
uv run artl-cli get-doi-metadata --doi "10.1038/nature12373"
uv run artl-cli search-papers-by-keyword --query "CRISPR" --max-results 5
# Run the MCP server locally
uv run artl-mcp
# Run tests
make test # Fast development tests
make test-coverage # Full test suite with coverage
# Code quality
make lint # Ruff linting
make format # Black formatting
make mypy # Type checkingDevelopment vs. Production Usage:
Developers (local repo): Use
uv run artl-cliafteruv syncEnd users (no local install): Use
uvx --from artl-mcp artl-cli
Optional: Claude Code CLI for Makefile Demos
β οΈ Not Required: Claude Code CLI is ONLY needed for running
make claude-demos-alltests. Normal users and MCP users don't need this.
The repository includes optional MCP integration tests via Makefile targets:
make claude-demos-all # Run all MCP demos (requires Claude Code CLI)Requirements for demos:
Claude Code CLI:
npm install -g @anthropic-ai/claude-codeAnthropic API key (pay-per-use, ~$1-2 for all demos based on current pricing β see Anthropic pricing)
See PREREQUISITES.md for setup instructions.
Documentation
PREREQUISITES.md - Setup guide (Python, uv, MCP clients, email config)
USERS.md - Comprehensive user guide with examples
DEVELOPERS.md - Development setup and architecture
CBORG.md - CBORG usage for LBL users (spending tracking)
Available Tools
6 toolsget_all_identifiers_from_europepmcC
MCP wrapper - Get all identifiers without file saving.
Inputs: identifier (required).
get_europepmc_full_textC
MCP wrapper - Get full text without file saving.
Inputs: identifier (required), offset, limit.
get_europepmc_paper_by_idC
MCP wrapper - Get Europe PMC paper metadata without file saving.
Inputs: identifier (required).
get_europepmc_pdf_as_markdownC
MCP wrapper - Convert PDF to Markdown without file saving.
Inputs: identifier (required), extract_tables, processing_method, offset, +1 more.
get_pmc_supplemental_materialA
Gets Supplemental Material for a PubMed Central Open Access article.
Supports multiple PubMed Central ID in the following input formats:
Prefixed: PMC12345678
Numeric: 12345678
Prefixed with colon: PMC:12345678
Args: pmcid: PubMed Central ID in any supported format idx: The file index to retrieve offset: Character offset to start from (default: 0) limit: Maximum number of characters to return (default: None for all)
Returns: A Supplemental Material file content, optionally windowed.
Examples: >>> get_pmc_supplemental_material("PMC12345678", 1) 'Supplementary Material...' >>> get_pmc_supplemental_material("PMC:12345678", 1, offset=100, limit=500) 'Supplementary Material...'
Inputs: pmcid (required), idx, offset, limit. Returns: result
search_europepmc_papersA
Search Europe PMC for papers without saving results to a file.
This function wraps the _search_europepmc_papers function and disables
file saving. It retrieves metadata about papers matching the given keywords.
Args: keywords (str): The search query string containing keywords to look for. max_results (int, optional): The maximum number of results to return. Defaults to 10. result_type (str, optional): The type of results to retrieve. Options include "lite" (basic metadata) and "core" (detailed metadata). Defaults to "lite".
Returns: list[dict]: A list of dictionaries, where each dictionary contains metadata about a paper matching the search query.
Example: >>> results = search_europepmc_papers("machine learning", max_results=5) >>> for paper in results: ... print(paper["title"])
Inputs: keywords (required), max_results, result_type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 6 tools
Each tool has a distinct purpose: search, metadata retrieval, full text, PDF conversion, supplementary material, and identifier listing. However, 'get_europepmc_full_text' and 'get_europepmc_pdf_as_markdown' may cause slight ambiguity about which to use for full content.
Most tools use 'get_' or 'search_' prefixes with 'europepmc' in the name, but 'get_pmc_supplemental_material' breaks the pattern by using 'pmc' instead of 'europepmc' and omitting the prefix. This inconsistency could confuse agents.
Six tools is a reasonable number for interacting with Europe PMC. It covers essential operations without being excessive, though the scope is narrow (read-only access).
The set covers searching, metadata retrieval, full text, PDF conversion, and supplemental material. Missing are write operations (not expected here) and perhaps citation/reference tools, but overall it's well-rounded for read access.
Related MCP Connectors
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
PubMed MCP β wraps the NCBI E-utilities API (biomedical literature, free, no auth)
Search biomedical literature, get article details, find related articles, and explore MeSH terms
Auditable MCP server for PubMed, Europe PMC, ClinicalTrials.gov, and bioRxiv/medRxiv queries
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables searching and retrieving biomedical literature from Europe PMC, including articles, abstracts, references, and citations.66 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables searching PubMed and Europe PMC, fetching article metadata and full text with fallbacks, resolving citations and IDs, formatting references, and looking up MeSH terms via MCP over STDIO or Streamable HTTP.9 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables searching PubMed and Europe PMC, fetching article metadata and full text via PMC, Europe PMC, or Unpaywall, and working with citations, related articles, MeSH terms, and identifier conversion through MCP over stdio or Streamable HTTP.9 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables searching PubMed and Europe PMC and retrieving biomedical literature metadata, abstracts, and full text via PMC, Europe PMC, or Unpaywall fallbacks. Also supports citation formatting in APA/MLA/BibTeX/RIS/Vancouver, MeSH term lookup, identifier conversion, related-article discovery, and citation resolution over stdio or Streamable HTTP.9 npmMIT