Skip to content

Commit 5bab31a

Browse files
committed
Review MCP server on R Pi 5 Learning Path
1 parent fb10a84 commit 5bab31a

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

content/learning-paths/cross-platform/mcp-ai-agent/_index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Deploy an MCP Server on Raspberry Pi 5 for AI Agent Interaction using OpenAI SDK
33

4-
5-
64
minutes_to_complete: 30
75

86
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.
@@ -24,11 +22,11 @@ author: Andrew Choi
2422
skilllevels: Introductory
2523
subjects: ML
2624
armips:
27-
- Cortex-A76
25+
- Cortex-A
2826
tools_software_languages:
2927
- Python
30-
- IoT
3128
- AI
29+
- Raspberry Pi
3230
- MCP
3331

3432
operatingsystems:

content/learning-paths/cross-platform/mcp-ai-agent/intro-to-mcp-uv.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Some key features:
3131
For further information on `uv`, see: [https://github.com/astral-sh/uv](https://github.com/astral-sh/uv).
3232

3333

34-
### A high-level view of the architecture
34+
## A high-level view of the architecture
3535

3636
![Diagram of Model Context Protocol (MCP) architecture showing the interaction between MCP Host (LLM-powered app), MCP Client (runtime shim), and MCP Server, which connects to local data sources (files, sensors, databases) and remote APIs for AI agent context retrieval.](./mcp.png)
3737

@@ -49,7 +49,7 @@ Each component in the diagram plays a distinct role in enabling AI agents to int
4949
Learn more about AI Agents in the Learning Path [Deploy an AI Agent on Arm with llama.cpp and llama-cpp-agent using KleidiAI](https://learn.arm.com/learning-paths/servers-and-cloud-computing/ai-agent-on-cpu/).
5050
{{% /notice %}}
5151

52-
### Section summary
52+
## Section summary
5353

5454
This page introduces MCP and `uv` as foundational tools for building fast, secure, and modular AI agents that run efficiently on edge devices like the Raspberry Pi 5.
5555

content/learning-paths/cross-platform/mcp-ai-agent/mcp-client.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ In this section, you'll learn how to set up an AI Agent on your development mach
1010

1111
These commands were tested on a Linux Arm development machine.
1212

13-
### Create an AI Agent and point it at your Pi's MCP Server
13+
## Create an AI Agent and point it at your Pi's MCP Server
14+
1415
1. Install `uv` on your development machine:
1516

1617
```bash
@@ -41,7 +42,7 @@ uv add openai-agents python-dotenv
4142
echo -n "OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>" > .env
4243
```
4344

44-
### Write the Python script for the Agent Client
45+
## Write the Python script for the Agent Client
4546

4647
Use a file editor of your choice and replace the content of the sample `main.py` with the content shown below:
4748

@@ -88,7 +89,7 @@ if __name__ == "__main__":
8889
asyncio.run(main())
8990
```
9091

91-
### Execute the Agent
92+
## Execute the Agent
9293

9394
You’re now ready to run the AI Agent and test its connection to your running MCP server on the Raspberry Pi 5.
9495

@@ -111,7 +112,8 @@ Congratulations! Your local AI Agent just called the MCP server on your Raspberr
111112

112113
This lightweight protocol isn’t just a game-changer for LLM developers—it also empowers IoT engineers to transform real-world data streams and give AI direct, reliable control over any connected device.
113114

114-
### Next Steps
115+
## Next Steps
116+
115117
- **Expand Your Toolset**
116118
- Write additional `@mcp.tool()` functions for Pi peripherals (such as GPIO pins, camera, and I²C sensors).
117119
- Combine multiple MCP servers (for example, filesystem, web-scraper, and vector-store memory) for richer context.
@@ -120,6 +122,7 @@ This lightweight protocol isn’t just a game-changer for LLM developers—it al
120122
- Hook into Home Assistant or Node-RED through MCP.
121123
- Trigger real-world actions (for example, turn on LEDs, read environmental sensors, and control relays).
122124

123-
### Section summary
125+
## Section summary
126+
124127
You’ve now built and run an AI agent on your development machine that connects to an MCP server on your Raspberry Pi 5. Your agent can now interact with real-world data sources in real time — a complete edge-to-cloud loop powered by OpenAI’s Agent SDK and the MCP protocol.
125128

content/learning-paths/cross-platform/mcp-ai-agent/mcp-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ngrok http 8000
138138
```
139139
4. Copy the generated HTTPS URL (e.g. `https://abcd1234.ngrok-free.app`). You’ll use this endpoint to connect external tools or agents to your MCP server. Keep this URL available for the next steps in your workflow.
140140
141-
### Section summary
141+
## Section summary
142142
143143
You now have a working FastMCP server on your Raspberry Pi 5. It includes tools for reading CPU temperature and retrieving weather data, and it's accessible over the internet via a public HTTPS endpoint using ngrok. This sets the stage for integration with LLM agents or other external tools.
144144

0 commit comments

Comments
 (0)