Literature MCP

Literature MCP

A specialized MCP server that provides a structured interface to the Europe PMC database for biological and clinical evidence retrieval. It enables LLMs to gather, rank, and synthesize published research focusing on therapeutic targets and disease associations.

Category
Visit Server

README

๐Ÿ“š Literature MCP

MCP Version Python Version License: MIT

A specialized Model Context Protocol (MCP) server for biological and clinical evidence retrieval. This server provides a structured, agent-friendly interface to the Europe PMC database, enabling LLMs to gather, rank, and synthesize published research.

Built for the Agent4Target ecosystem, it focuses on high-confidence evidence collection for therapeutic targets and disease associations.


๐Ÿ—๏ธ Architecture & Workflow

The server performs semantic and keyword-based retrieval, transforming raw XML/JSON responses from Europe PMC into clean, machine-readable evidence models.

graph LR
    User([User / LLM Client]) <-->|MCP Protocol| Server[Literature MCP Server]
    
    subgraph "Internal Processing"
        Server --> Router{Tool Router}
        Router --> T1[collect_target_evidence]
        Router --> T2[search_articles]
        Router --> T3[get_article_by_pmid]
        
        T1 & T2 & T3 --> Client[EuropePMCClient]
        Client --> EPMC_API[[Europe PMC REST API]]
    end
    
    subgraph "Ranking Logic"
        Client --> Ranker[Citation & Recency Weighted Ranking]
        Ranker --> Pydantic[Pydantic Result Models]
        Pydantic --> Server
    end

๐Ÿš€ Quick Start

1. Installation

pip install literature-mcp

2. Running the Server

The server is highly flexible and supports both stdio (standard for Claude Desktop) and HTTP SSE transport.

# Run over stdio (Standard)
literature-mcp --transport stdio

# Run as local HTTP server (SSE)
literature-mcp --port 8002

๐Ÿ› ๏ธ Tools Documentation

collect_literature_target_evidence

The primary tool for the Agent4Target workflow. It performs a multi-strategy search for a gene and disease context, returning the most cited and relevant evidence records.

  • Inputs:
    • gene_symbol (required, e.g., "BRAF")
    • disease_id (optional, e.g., "EFO_0000311")
    • limit (max records, default: 15)

search_literature_articles

A flexible search tool that accepts raw Europe PMC query strings (e.g., AUTHOR:"Vogelstein B" AND GENE:"KRAS").

  • Inputs: query (string)

get_literature_article_by_pmid

Retrieves full structured metadata for a specific article.

  • Inputs: pmid (string)

get_literature_service_metadata

Returns information about the underlying Europe PMC client, API rate limits, and health status.


โš™๏ธ Configuration

Variable Default Description
LITERATURE_MCP_EUROPE_PMC_SEARCH_URL https://www.ebi.ac.uk/... REST API endpoint.
LITERATURE_MCP_HTTP_PORT 8002 Port for SSE transport.
LITERATURE_MCP_REQUEST_TIMEOUT_S 30 Network timeout for API calls.
LITERATURE_MCP_LOG_LEVEL INFO Verbosity of server logs.

๐Ÿ–ฅ๏ธ Usage in Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "literature-mcp": {
      "command": "literature-mcp",
      "args": ["--transport", "stdio"],
      "env": {
        "LITERATURE_MCP_LOG_LEVEL": "DEBUG"
      }
    }
  }
}

๐Ÿงช Development

The project uses uv for modern, fast dependency management.

# Clone and setup
git clone https://github.com/your-org/literature-mcp
cd literature-mcp
uv sync

# Run tests
uv run pytest

๐Ÿ“„ License

MIT ยฉ 2026 Literature MCP Contributors. Part of the Agent4Target ecosystem.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured