# Deploy an MCP server on Raspberry Pi 5 with the OpenAI SDK

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/cross-platform/mcp-ai-agent/)
- [Explore MCP and Python uv for local AI agents](https://learn.arm.com/learning-paths/cross-platform/mcp-ai-agent/intro-to-mcp-uv/)
- [Set up an MCP server on Raspberry Pi 5](https://learn.arm.com/learning-paths/cross-platform/mcp-ai-agent/mcp-server/)
- [Build and run an AI agent on your development machine](https://learn.arm.com/learning-paths/cross-platform/mcp-ai-agent/mcp-client/)
- [Next Steps](https://learn.arm.com/learning-paths/cross-platform/mcp-ai-agent/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Introductory |
| Reading time: | 30 min |
| Last updated: | 12 Nov 2026 |

|  |  |
| --- | --- |
| Author: | Andrew Choi |
| Arm IP: | [Cortex-A](https://support.arm.com/?tab=compute-ip&Product%20Type=Application%20Processors) |
| Tags: | [Agentic AI](https://learn.arm.com/tag/agentic-ai/) [Linux](https://learn.arm.com/tag/linux) [Python](https://learn.arm.com/tag/python) [AI](https://learn.arm.com/tag/ai) [Raspberry Pi](https://learn.arm.com/tag/raspberry-pi) [MCP](https://learn.arm.com/tag/mcp) |

### Who is this for?

This Learning Path is for LLM and IoT developers who want to run and interact with AI agents on edge devices like the Raspberry Pi 5. You'll learn how to deploy a lightweight Model Context Protocol (MCP) server and use the OpenAI Agent SDK to create and register tools for intelligent local inference.

### What will you learn?

After completing this Learning Path, you'll be able to perform the following tasks:

- Deploy a lightweight Model Context Protocol (MCP) server on Raspberry Pi 5 for local AI agent execution.
- Use the OpenAI Agent SDK to interact with a local AI agent.
- Design and register custom tools for the agent tasks.
- Learn about `uv` - a fast, efficient Python package manager for efficient local deployment.

### Prerequisites

Before starting, you'll need the following prerequisites:

- A [Raspberry Pi 5](https://www.raspberrypi.com/products/raspberry-pi-5/) with a Linux-based OS installed.
- Familiarity with Python programming and prompt engineering techniques.
- Basic understanding of Large Language Models (LLMs) and how they are used in local inference.
- Understanding of AI agents and the OpenAI Agent SDK (or similar frameworks).

### Summary

You’ll deploy a Model Context Protocol (MCP) server on Raspberry Pi 5 and connect it to an AI agent built with the OpenAI Agent SDK. You’ll install `uv` and bootstrap a FastMCP server with CPU-temperature and weather tools. Then, you’ll expose the server through an `ngrok` tunnel and configure an agent on a separate Arm Linux machine. Finally, you’ll connect the server to the agent and prompt to retrieve live values from the Pi and external sources.
