Show HN: Mcp-Agent – Build effective agents with Model Context Protocol Hey HN, I spent my xmas break building an agent framework called mcp-agent [1]( https://ift.tt/SCRLs9h ) for Model Context Protocol [2]. It makes it easy to build AI apps with MCP servers, and implements every pattern from the popular Building Effective Agents blog [3] as well as OpenAI’s Swarm [4]. I’m sharing it early to get community feedback on where to take it from here, and to ask for contributions. For those who aren’t familiar with MCP, I think of it as a standardized interface to let AI communicate with software via tool calls, resources and prompts. mcp-agent provides a higher level interface to build apps with MCP. It handles the connection management of MCP servers so you don’t have to. It also implements the Building Effective Agents patterns: - Augmented LLM (an LLM with access to one or more MCP servers) - Router, Orchestrator-Worker, Evaluator-Optimizer, and more - Swarm The key design principles are composability and reusability – every pattern is an AugmentedLLM itself, so you can chain them into more complex workflows. Some background: I worked on LSP [5] and language servers at Microsoft, and saw firsthand how standards and protocols can revolutionize developer workflows. Before LSP every IDE had its own esoteric ways of providing language services. LSP changed all that, and arguably made every language server better, since they can focus on improving a single implementation for all clients. I think AI development is in a similar pre-LSP space right now. There are tons of frameworks [6], every model provider has its own way of handling messages, tool calls, streaming, etc. I really think we need a protocol to standardize these patterns. Pretty soon every service is going to expose an MCP interface, and mcp-agent is about letting developers orchestrate these services into applications (i.e. build “MCP apps”). This can cover any use of an AI model that needs to interact with the world around it: - RAG pipelines and Q&A chatbots - Process automation via AI workflows/async tasks - Multi-agent orchestration, with human in the loop The repo contains examples [7] to build RAG agents, streamlit apps and more. There’s a lot left to build, like streaming support, server auth and tighter integration with MCP clients. But I wanted to share early in the hopes that you can guide me: - If you find this useful, please let me know. If it’s useful to you, I will dedicate all my time to improving it. - I really welcome contributions. If you want to collaborate, please reach out on github to help take this forward. I want to help standardize AI development, so developers a few years from now can look back with horror at the pre-MCP days. [1] - https://ift.tt/SCRLs9h [2] - https://ift.tt/lz8bYhn [3] - https://ift.tt/vG0Azr3 [4] - https://ift.tt/w2INqcH [5] - https://ift.tt/ekIVDUP [6] - https://xkcd.com/927/ (I understand the irony) [7] - https://ift.tt/CNRbsuB https://ift.tt/SCRLs9h January 29, 2025 at 09:56PM
Show HN: Mcp-Agent – Build effective agents with Model Context Protocol https://ift.tt/kxRhUAS
Related Articles
Show HN: DragonRuby Game Toolkit – Commercial 2D Game Engine https://ift.tt/2R2PKLxShow HN: DragonRuby Game Toolkit – Commercial 2D Game Engine https://i… Read More
Show HN: Microsoft Teams (unofficial) Go library (WIP) https://ift.tt/3t5N3asShow HN: Microsoft Teams (unofficial) Go library (WIP) https://ift.tt/… Read More
Show HN: Khuro, a Private Social Network https://ift.tt/3gcAs1AShow HN: Khuro, a Private Social Network https://ift.tt/3dKAOcJ April … Read More
Show HN: Squirrelbyte – a SQLite-based JSON document server https://ift.tt/3s9l34nShow HN: Squirrelbyte – a SQLite-based JSON document server https://if… Read More
Show HN: RentMyCPU – An open-source computational network https://ift.tt/3g52X13Show HN: RentMyCPU – An open-source computational network https://ift.… Read More
Show HN: CodeWing – next level code navigation for {Python,Java,Go} on GitHub https://ift.tt/3ms26swShow HN: CodeWing – next level code navigation for {Python,Java,Go} on… Read More
Show HN: Low-Code Internal Chrome Extension Builder (Developer Preview) https://ift.tt/3wWhwK7Show HN: Low-Code Internal Chrome Extension Builder (Developer Preview… Read More
Show HN: A CLI Utility to interact with Spring Boot's Actuator Endpoint https://ift.tt/2PW6LqgShow HN: A CLI Utility to interact with Spring Boot's Actuator Endpoin… Read More
0 Comments: