You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/cross-platform/mcp-ai-agent/_index.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
---
2
2
title: Deploy an MCP Server on Raspberry Pi 5 for AI Agent Interaction using OpenAI SDK
3
3
4
-
5
-
6
4
minutes_to_complete: 30
7
5
8
6
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.
Copy file name to clipboardExpand all lines: content/learning-paths/cross-platform/mcp-ai-agent/intro-to-mcp-uv.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Some key features:
31
31
For further information on `uv`, see: [https://github.com/astral-sh/uv](https://github.com/astral-sh/uv).
32
32
33
33
34
-
###A high-level view of the architecture
34
+
## A high-level view of the architecture
35
35
36
36

37
37
@@ -49,7 +49,7 @@ Each component in the diagram plays a distinct role in enabling AI agents to int
49
49
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/).
50
50
{{% /notice %}}
51
51
52
-
###Section summary
52
+
## Section summary
53
53
54
54
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.
Use a file editor of your choice and replace the content of the sample `main.py` with the content shown below:
47
48
@@ -88,7 +89,7 @@ if __name__ == "__main__":
88
89
asyncio.run(main())
89
90
```
90
91
91
-
###Execute the Agent
92
+
## Execute the Agent
92
93
93
94
You’re now ready to run the AI Agent and test its connection to your running MCP server on the Raspberry Pi 5.
94
95
@@ -111,7 +112,8 @@ Congratulations! Your local AI Agent just called the MCP server on your Raspberr
111
112
112
113
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.
113
114
114
-
### Next Steps
115
+
## Next Steps
116
+
115
117
-**Expand Your Toolset**
116
118
- Write additional `@mcp.tool()` functions for Pi peripherals (such as GPIO pins, camera, and I²C sensors).
117
119
- 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
120
122
- Hook into Home Assistant or Node-RED through MCP.
121
123
- Trigger real-world actions (for example, turn on LEDs, read environmental sensors, and control relays).
122
124
123
-
### Section summary
125
+
## Section summary
126
+
124
127
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.
Copy file name to clipboardExpand all lines: content/learning-paths/cross-platform/mcp-ai-agent/mcp-server.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ ngrok http 8000
138
138
```
139
139
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 forthe next stepsin your workflow.
140
140
141
-
### Section summary
141
+
## Section summary
142
142
143
143
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.
0 commit comments