Mc

Mcp-Agent – Build effective agents with Model Context Protocol

Hacker News

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://github.com/lastmile-ai/mcp-agent ) 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://github.com/lastmile-ai/mcp-agent [2] - https://modelcontextprotocol.io/introduction [3] - https://www.anthropic.com/research/building-effective-agents [4] - https://github.com/openai/swarm [5] - https://microsoft.github.io/language-server-protocol/ [6] - https://xkcd.com/927/ (I understand the irony) [7] - https://github.com/lastmile-ai/mcp-agent/tree/main/examples

Share card

Actual performance

80points
28comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agents, agent, model · Missing: mac, macos, cursor
95%95% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
82%82% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: lua, ide, pipe · Missing: https docs, excited, just released
58%58% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: apps, way · Missing: mobile apps, ios, personal
41%41% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface, soon, calls · Missing: plus, platform, intuitive
39%39% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat, collaborate · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ch
Chainlit Now Supports Anthropic's Model Context Protocol (MCP)57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Chainlit Now Supports Anthropic's Model Context Protocol (MCP)

Hacker News1
Pd
Pdfnative-MCP – Model Context Protocol server for the pdfnative engine35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pdfnative-MCP – Model Context Protocol server for the pdfnative engine

Hacker News1
Sm
Smithery – Model Context Protocol Hosting and Registry49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Smithery – Model Context Protocol Hosting and Registry

Hacker News1
Go
GoMCPTest: Go Playground for Model Context Protocol Experimentations51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GoMCPTest: Go Playground for Model Context Protocol Experimentations

Hacker News1
Ju
Julius Slack Agent (and how to build your own)40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Julius Slack Agent (and how to build your own)

Hacker News5
On
Only video to understand Model Context Protocol (MCP) in depth29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Only video to understand Model Context Protocol (MCP) in depth

Hacker News2
Ag
Agent Protocol27%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Agent Protocol

Hacker News6
Ag
Agent Protocol27%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Agent Protocol

Hacker News3
Of
Offeryn – Build Tools for LLMs in Rust, with Model Context Protocol52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Offeryn – Build Tools for LLMs in Rust, with Model Context Protocol

Hacker News7
MCP Cloud
MCP Cloud90%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

easily run MCP (model context protocol) servers in the cloud

Product Hunt+52