MCP Servers: ArXiv MCP Server
MCP (Model Context Protocol) servers are the bridge between AI assistants and real-world resources such as file systems, databases, APIs, and search engines. AI interactions are bursty, so a server that scales to zero when unused and wakes in milliseconds only costs you for the queries it answers.
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 unikraft CLI. You need a BuildKit builder. The easiest way to get one is via Docker. Alternatively, you can also directly set up and use BuildKit, see the quick start.
-
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, 🇩🇪):
Code
When done, invoke the following command to deploy this app on Unikraft Cloud:
Code
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
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:
Code
Then start the MCP server instance and mount that volume (while specifying the storage path):
Code
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:
Code
Or visit the CLI Reference.