list_downloaded_papers
View locally stored arXiv papers with metadata to quickly access previously downloaded scientific literature without re-searching.
Instructions
List all locally downloaded papers.
Returns:
List of downloaded papers with their metadata
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/arxiv_mcp_server/server.py:99-119 (handler)The main handler function for the 'list_downloaded_papers' tool. It retrieves the list of downloaded papers from storage, formats them with ID, title, and authors, and returns a formatted string.@mcp.tool() def list_downloaded_papers() -> str: """List all locally downloaded papers. Returns: List of downloaded papers with their metadata """ papers = storage.list_papers() if not papers: return "No papers downloaded yet." results = [] for p in papers: authors = ", ".join(p["authors"][:3]) if len(p["authors"]) > 3: authors += " et al." results.append(f"**{p['id']}**: {p['title']}\nAuthors: {authors}") return "\n---\n".join(results)
- The helper method in PaperStorage class that returns the list of all stored paper metadata dictionaries, used by the tool handler.def list_papers(self) -> list[dict]: return list(self._metadata.values())