SmolAgentWithMCP enables developers to build powerful AI agents that integrate multiple MCP tool servers, like Brave Search, with LLMs for enhanced, real-time question-answering and tool orchestration.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"smolagentwithmcp": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
SmolAgentWithMCP is a Python-based AI agent framework that connects multiple Model Context Protocol (MCP) tool servers and orchestrates them with a large language model (LLM). With support for Brave Search and other MCP-compatible tools, it enables powerful, tool-augmented question-answering workflows. The agent leverages smolagents, LiteLLM, and MCP protocol to offer flexible, extensible, and modern AI tooling.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in search / ai-ml
Web and local search using Brave Search API
Production ready MCP server with real-time search, extract, map & crawl.
Workspace template + MCP server for Claude Code, Codex CLI, Cursor & Windsurf. Multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable AI assistant.
Persistent memory using a knowledge graph
MCP Security Weekly
Get CVE alerts and security updates for SmolAgentWithMCP and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
SmolAgentWithMCP is a Python-based AI agent framework that connects multiple Model Context Protocol (MCP) tool servers and orchestrates them with a large language model (LLM). With support for Brave Search and other MCP-compatible tools, it enables powerful, tool-augmented question-answering workflows. The agent leverages smolagents, LiteLLM, and MCP protocol to offer flexible, extensible, and modern AI tooling.
This project is ideal for developers and researchers who want to:
Example Scenarios:
.env: Supports multiple API keys and environment settings.- smolagentwithmcp.py # Main agent source code
- requirements.txt # Python dependencies
- .env.example # Example env file
- README.md # Project documentation
Clone the repository:
git clone https://github.com/ashishpatel26/SmolAgentWithMCP.git
cd SmolAgentWithMCP
Install dependencies:
pip install -r requirements.txt
Configure environment variables:
.env.example to .env and fill in your API keys.cp .env.example .env
Run the agent:
python smolagentwithmcp.py
flowchart TD
subgraph User Interaction
U([User]) -->|Query| AGENT[SmolAgentWithMCP]
end
AGENT -->|Loads| MCP1[MCP Tool Server 1: Brave Search]
AGENT -->|Loads| MCP2[MCP Tool Server 2: Custom]
AGENT -->|Initializes| LLM[LiteLLM Model]
U -->|Input| AGENT
AGENT -->|Decides tool usage| TOOLCALL[ToolCallingAgent]
TOOLCALL -->|Calls| MCP1
TOOLCALL -->|Calls| MCP2
MCP1 -->|Returns Data| TOOLCALL
MCP2 -->|Returns Data| TOOLCALL
TOOLCALL -->|Generates Answer| AGENT
AGENT -->|Output| U
Edit .env to set your API keys:
BRAVE_API_KEY=your_brave_search_api_key
OPENAI_API_KEY=your_openai_api_key
See requirements.txt:
smolagentspython-dotenvmcplitellmMIT License. See LICENSE for details.
Contributions welcome! Please open issues or PRs for feature requests, bug fixes, or enhancements.