Skip to main content
Glama
literature-agent-mcp

literature-agent-mcp

by zouxy111

literature-agent-mcp

MCP server that exposes the local biomedical literature pipeline in:

  • /Users/zouxingyu/Desktop/Codex工作区/literature-agent

It wraps the existing five-step CLI workflow as MCP tools so OpenClaw / Codex / Claude Code / other MCP clients can call it as a standard server.

Tools

  • plan_query

  • search_and_merge

  • download_fulltexts

  • convert_and_index

  • write_draft

  • run_pipeline

Related MCP server: pubmed-clinical-mcp

Default assumptions

  • Biomedical / pathology domain

  • Legal open-access retrieval only

  • No paywall bypass

  • Local literature-agent project already exists

Local setup

cd /tmp/mcp_repo_zouxy111
python3.11 -m venv .venv
source .venv/bin/activate
pip install -e .

Run server

source .venv/bin/activate
literature-agent-mcp

Environment variables

  • LITERATURE_AGENT_ROOT: override the default project root
    Default: /Users/zouxingyu/Desktop/Codex工作区/literature-agent

  • LITERATURE_AGENT_PYTHON: override the interpreter used to call the backend
    Default: <root>/.venv/bin/python, fallback python

Example MCP config

{
  "mcpServers": {
    "literature-agent": {
      "command": "/tmp/mcp_repo_zouxy111/.venv/bin/literature-agent-mcp",
      "env": {
        "LITERATURE_AGENT_ROOT": "/Users/zouxingyu/Desktop/Codex工作区/literature-agent"
      }
    }
  }
}

Backend outputs

For a given task_id, outputs are written under:

<literature-agent>/work/<task_id>/

Typical structure:

  • query_plan.json

  • search/master_results.jsonl

  • corpus/

  • draft/

Available Tools

6 tools
convert_and_indexC

Convert downloaded PDF/HTML to notes/text and index the corpus.

Inputs: task_id (required). Returns: object

download_fulltextsC

Download open-access full texts and write manual follow-up list.

Inputs: task_id (required). Returns: object

plan_queryC

Generate a query plan JSON for a biomedical/pathology literature task.

Inputs: topic (required), task_id (required), question, year_start, +1 more. Returns: object

run_pipelineC

Run the complete literature pipeline: plan, search, download, index, and draft.

Inputs: topic (required), task_id (required), question, year_start, +3 more. Returns: object

search_and_mergeB

Run multi-source search and merge using the existing query plan.

Inputs: task_id (required), per_query. Returns: object

write_draftC

Generate an outline and first draft scaffold from the local corpus.

Inputs: task_id (required), topic (required), mode. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 6 tools

    Disambiguation2/5

    The run_pipeline tool explicitly subsumes the functionality of most other tools (plan, search, download, index, draft), creating significant ambiguity about when agents should use atomic steps versus the monolithic pipeline. Boundaries between individual tools are clear, but their relationship to the pipeline tool is undefined.

    Naming Consistency3/5

    While all tools use snake_case, the naming pattern inconsistently mixes simple verb_noun constructions (plan_query, write_draft) with compound verb_and_verb patterns (convert_and_index, search_and_merge). This deviation from a single convention reduces predictability despite remaining readable.

    Tool Count4/5

    Six tools falls within the ideal range for a literature research domain and covers the major workflow stages. However, functional redundancy between the pipeline orchestrator and individual step tools suggests slight scope overlap, preventing a perfect score.

    Completeness3/5

    The set covers core creation operations (planning, downloading, indexing, drafting) but lacks complementary read/update/delete operations for managing the generated artifacts. Notable gaps include querying the indexed corpus, retrieving specific papers, or updating drafts after creation.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers