Create the agent
- Use CLI (Recommended)
- Do it manually
1
Create a folder
2
Initialize your mcp-agent
python -m venv .venv && pip install mcp-agent works too.)3
Add your model provider key
In the
mcp_agent.secrets.yaml in your project directory, add your OpenAI or other model provider key.mcp_agent.secrets.yaml
Run it locally
Deploy it (optional)
You can deploy your agent as an MCP server.Next steps
- Check out the generated README (if you used the CLI) for tips on extending the agent.
- Layer in more capabilities using the Effective Patterns guide.
- Ready to deploy your agent? Follow Deploy to Cloud.
