{"repo":"SaM-92/mcp_autogen_sse_stdio","free":true,"listed":false,"github":"https://github.com/SaM-92/mcp_autogen_sse_stdio","clone":"git clone https://github.com/SaM-92/mcp_autogen_sse_stdio.git","description":"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.","language":"Python","stars":29,"topics":["ai","autogen","azure","data-science","llm","mcp-server","model-context-protocol","model-context-protocol-servers"],"license":null,"category":"mcp-servers","readme_excerpt":"🤖 MCP Server Examples with AutoGen 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 via math 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 AssistantAgent configured 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: 1. A math problem ( (3 + 5) x 12? ), expected to use the local math server.py . 2. 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 (autogen agentchat, autogen core, autogen ext) - MCP : Model Context Protocol for tool integration - Python-dotenv : For environment variable management - OpenAI API : For LLM capabilities - Apify ","default_branch":null,"files":null,"tree":[],"storefront":"/r/SaM-92","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SaM-92/mcp_autogen_sse_stdio/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}