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
**`mcp-agent`** is a simple, composable framework to build agents using [Model Context Protocol](https://modelcontextprotocol.io/introduction).
32
31
33
-
**Inspiration**: Anthropic announced 2 foundational updates for AI application developers:
32
+
> [!Note]
33
+
> mcp-agent's vision is that _MCP is all you need to build agents, and that simple patterns are more robust than complex architectures for shipping high-quality agents_.
34
+
35
+
`mcp-agent` gives you the following:
36
+
37
+
1. It fully implements MCP, and handles the pesky business of managing the lifecycle of MCP server connections so you don't have to.
38
+
2. It implements every pattern described in Anthropic's [Building Effective Agents](https://www.anthropic.com/engineering/building-effective-agents) in a _composable_ way, allowing you to chain these patterns together.
39
+
3.**Durable agents**: It works for simple agents and scales to sophisticated workflows built on [Temporal](https://temporal.io/) so you can pause, resume, and recover without any API changes to your agent.
40
+
41
+
**Altogether, this is the simplest and easiest way to build robust agent applications**.
42
+
43
+
We welcome all kinds of [contributions](/CONTRIBUTING.md), feedback and your help in improving this.
44
+
45
+
## At a glance
46
+
47
+
<table>
48
+
<tr>
49
+
<td width="50%" valign="top">
50
+
<h3>Build an Agent</h3>
51
+
<p>Connect LLMs to MCP servers in simple, composable patterns like map-reduce, orchestrator, evaluator-optimizer, router & more.</p>
mcp-agent's complete documentation is available at **[docs.mcp-agent.com](https://docs.mcp-agent.com)**, including full SDK guides, CLI reference, and advanced patterns. This readme gives a high-level overview to get you started.
1.[Model Context Protocol](https://www.anthropic.com/news/model-context-protocol) - a standardized interface to let any software be accessible to AI assistants via MCP servers.
36
-
2.[Building Effective Agents](https://www.anthropic.com/research/building-effective-agents) - a seminal writeup on simple, composable patterns for building production-ready AI agents.
37
-
38
-
`mcp-agent` puts these two foundational pieces into an AI application framework:
39
-
40
-
1. It handles the pesky business of managing the lifecycle of MCP server connections so you don't have to.
41
-
2. It implements every pattern described in Building Effective Agents, and does so in a _composable_ way, allowing you to chain these patterns together.
42
-
3.**Durable agents**: It works for simple agents and scales to sophisticated workflows built on [Temporal](https://temporal.io/) so you can pause, resume, and recover effortlessly.
43
-
44
-
Altogether, this is the simplest and easiest way to build robust agent applications. Much like MCP, this project is in early development.
45
-
We welcome all kinds of [contributions](/CONTRIBUTING.md), feedback and your help in growing this to become a new standard.
108
+
## Get Started
46
109
47
-
**NEW**: Ready to deploy? Publish your agents as managed MCP servers—see the [Deploy to Cloud guide](https://docs.mcp-agent.com/get-started/deploy-to-cloud).
110
+
> [!TIP]
111
+
> The CLI is available via `uvx mcp-agent`.
112
+
> To get up and running
113
+
> Scaffold a project with `uvx mcp-agent init` and deploy with `uvx mcp-agent deploy my-agent`.
114
+
>
115
+
> You can get up and running in 2 minutes by running these commands:
116
+
>
117
+
> ```bash
118
+
> mkdir hello-mcp-agent &&cd hello-mcp-agent
119
+
> uvx mcp-agent init
120
+
> uv init
121
+
> uv add "mcp-agent[openai]"
122
+
># Add openai API key to `mcp_agent.secrets.yaml` or set `OPENAI_API_KEY`
123
+
> uv run main.py
124
+
>```
48
125
49
-
##Get Started
126
+
### Installation
50
127
51
-
We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects:
128
+
We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects (`uv init`).
52
129
53
130
```bash
54
131
uv add "mcp-agent"
@@ -60,8 +137,7 @@ Alternatively:
60
137
pip install mcp-agent
61
138
```
62
139
63
-
> [!TIP]
64
-
> The CLI is available via `uvx`. Scaffold a project with `uvx mcp-agent init --template basic --dir my-agent` or deploy with `uvx mcp-agent deploy my-agent`.
140
+
Also add optional packages for LLM providers (e.g. `mcp-agent[openai, anthropic, google, azure, bedrock]`).
0 commit comments