ArXiv MCP Server
This example demonstrates how to deploy the ArXiv MCP server on Unikraft Cloud.
The ArXiv MCP Server is a third-party library that provides stdio-based MCP tools for accessing arXiv research papers. This example uses FastMCP 2.0 to create a proxy MCP server that exposes these tools over streamable HTTP.
The server gives AI agents and assistants the ability to:
- Search for papers with filters for date ranges and categories
- Download and read paper content
- List downloaded papers
- Analyze papers using specialized prompts.
Running on Unikraft Cloud
To run this MCP server on Unikraft Cloud:
-
Install the CLI and a container runtime engine, for example Docker. Use the unikraft CLI or the legacy kraft CLI.
-
Clone the
examplesrepository andcdinto theexamples/mcp-server-arxiv/directory:
Code
Make sure to log into Unikraft Cloud and pick a metro close to you.
This guide uses fra (Frankfurt, 🇩🇪):
When done, invoke the following command to deploy this app on Unikraft Cloud:
The output shows your instance details:
Code
In this case, the instance name is mcp-server-arxiv-l7l24 and the service billowing-breeze-nuusy7l2.
They're different for each run.
For testing, you can use the example client included in this directory.
First, install uv if you haven't already, then run:
Code
Code
You can list information about the instance by running:
Code
When done, you can delete the instance with:
Code
Using volumes
You can use volumes for data persistence. For that you would first create a volume:
Then start the MCP server instance and mount that volume (while specifying the storage path):
Available tools
The ArXiv MCP Server provides the following tools:
- search_papers: Query arXiv papers with filters for date ranges and categories
- download_paper: Download a paper by its arXiv ID
- list_papers: View all downloaded papers
- read_paper: Access the content of a downloaded paper
Learn more
- ArXiv MCP Server Documentation
- FastMCP documentation
- Model Context Protocol
- Unikraft Cloud Documentation
- Building
DockerfileImages withBuildkit
Use the --help option for detailed information on using Unikraft Cloud:
Or visit the CLI Reference or the legacy CLI Reference.