get_arxiv_categories
Retrieve and explore a comprehensive list of ArXiv categories with descriptions to enhance research filtering and paper discovery within the ArxivSearcher MCP Server.
Instructions
Get a list of available ArXiv categories and their descriptions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- arxiv_searcher/arxiv_mcp.py:58-64 (handler)The core handler function for the 'get_arxiv_categories' tool. It is decorated with @mcp.resource to register it as 'data://arxiv_categories' and loads the arXiv categories from a local JSON file, returning them as a string.@mcp.resource("data://arxiv_categories") def get_arxiv_categories() -> str: """Provides the list of Arxiv categories in JSON format.""" with open("arxiv_categories.json", "r") as f: categories = json.load(f) return categories
- arxiv_searcher/remote_arxiv_mcp.py:58-63 (handler)Identical implementation of the 'get_arxiv_categories' handler in the remote version of the MCP server, loading categories from JSON file.@mcp.resource("data://arxiv_categories") def get_arxiv_categories() -> str: """Provides the list of Arxiv categories in JSON format.""" with open("arxiv_categories.json", "r") as f: categories = json.load(f) return categories