AutoGen SSE StdioSAFE
This repository demonstrates how to use AutoGen to integrate local and remote MCP (Model Context Protocol) servers. It showcases a local math tool (math_server.py) using Stdio and a remote Apify tool (RAG Web Browser Actor) via SSE for tasks like arithmetic and web browsing.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
This repository provides a practical demonstration of integrating tools with AI agents using the Model Context Protocol (MCP) within the AutoGen framework.
Key Features Demonstrated:
- Dual MCP Integration: Shows how to connect an AutoGen agent to:
- A local tool server (
math_server.py) using Stdio transport. - A remote tool server (Apify's RAG Web Browser Actor) using Server-Sent Events (SSE) transport.
- Local Tool Example: A simple calculator (
add,multiply) running locally viamath_server.py. - Remote Tool Example: Leveraging Apify's RAG Web Browser Actor via their MCP Server for web searching and content retrieval.
- AutoGen Agent: An
AssistantAgentconfigured to utilize both sets of tools to answer user queries.
Goal: To illustrate the flexibility of MCP in enabling AI agents to access diverse tools, whether hosted locally or remotely, through standardized communication protocols (Stdio and SSE).
Scenario: The example agent answers two distinct questions:
- A math problem (
(3 + 5) x 12?), expected to use the localmath_server.py. - A request for recent news ("Summarise the latest news of Iran and US negotiations..."), expected to use the remote Apify web browsing tool.
📚 Libraries & Frameworks Used
- AutoGen: AI agent framework (autogenagentchat, autogencore, autogen_ext)
- MCP: Model Context Protocol for tool integration
- Python-dotenv: For environment variable management
- OpenAI API: For LLM capabilities
- Apify API: For web browsing capabilities
🛠️ Setup
Follow these steps carefully to set up your environment:
- Prerequisites:
- Ensure you have Python 3.12 installed.
- Install
uvif not already installed:
pip install uv
- **Navigate to P
4f343eb16094OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add mcp-server-examples --env APIFY_API_KEY=${APIFY_API_KEY} --env OPENAI_API_KEY=${OPENAI_API_KEY} -- uvx mcp-server-examples{
"mcpServers": {
"mcp-server-examples": {
"command": "uvx",
"args": [
"mcp-server-examples"
],
"env": {
"APIFY_API_KEY": "${APIFY_API_KEY}",
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
}
}
}
}Exposed tools (2)
1 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
add | write | Add two numbers |
multiply | read | Multiply two numbers |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | WARN |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (3)
.DS_Store
.DS_Store
Gates applied: no_behavioural_pass, no_license.
4f343eb16094full audit observations/trust-audit/mcp-server/sam-92__autogen-sse-stdio.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 4f343eb16094 | SAFE | B | 89 | first audit |
Questions
What is the AutoGen SSE Stdio MCP server?
This repository demonstrates how to use AutoGen to integrate local and remote MCP (Model Context Protocol) servers. It showcases a local math tool (math_server.py) using Stdio and a remote Apify tool (RAG Web Browser Actor) via SSE for tasks like arithmetic and web browsing.
What tools does AutoGen SSE Stdio expose?
2 in total: 1 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is AutoGen SSE Stdio safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does AutoGen SSE Stdio need?
It reads APIFY_API_KEY and OPENAI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does AutoGen SSE Stdio run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-server-examples.
How current is this page?
The grade is for one exact copy of the source (4f343eb16094), read on 2026-10-08. The repository is watched and re-audited when it changes.