tinyagents
@albertvillanova
About tinyagents
Tiny Agents: LLM + MCP Tools
Overview
What is tinyagents?
TinyAgents is a minimalist implementation of LLM-powered agents that connect to Model Context Protocol (MCP) servers to access external tools. It runs on Python and is intended for developers building lightweight agent workflows.
How to use tinyagents?
Install required dependencies (Python 3.10+, mcp, huggingface-hub), set up an MCP server (e.g., the included weather server), then run either python tinytoolcallingagent.py <path_to_server_script> or python tinycodeagent.py <path_to_server_script> to start an interactive chat loop.
Key features of tinyagents
- Asynchronous operation using Python's asyncio
- Dynamic discovery and invocation of MCP server tools
- Interactive chat interface for user queries
- Integration with Hugging Face's InferenceClient (Qwen2.5-Coder-32B-Instruct)
- Two agent modes: tool-calling and code generation
Use cases of tinyagents
- Query weather alerts and forecasts via a National Weather Service MCP server
- Build custom agent workflows combining LLMs with MCP tool ecosystems
- Experiment with code-based task solving using TinyCodeAgent
FAQ from tinyagents
What models does tinyagents support?
TinyAgents uses the Qwen2.5-Coder-32B-Instruct model via Hugging Face's InferenceClient.
What MCP servers does tinyagents work with?
Both agents connect to Python or JavaScript MCP servers via stdio, enabling dynamic tool discovery from any compatible server.
Is tinyagents free to use?
—
Can tinyagents execute Python code?
The TinyCodeAgent is designed to generate Python code solutions; execution is a planned future enhancement (currently TODO).
What are the system requirements?
Python 3.10 or higher, with dependencies mcp >= 1.9.0, huggingface-hub >= 0.31.2, and optionally httpx for the weather server example.
Basic information
More Other MCP clients
mcp-oi-wiki
shwstone🌟 Wiki of OI / ICPC for LLMs. (面向大模型的某大型游戏线上攻略,内含炫酷算术魔法)
QU3 - Quantum-Safe MCP Client
qu3aiQuantum-proof MCP Server and Client Interactions
Anirudh's Chat
kamathA simple NextJS MCP client with sensible keybindings
Unyly
unyly.orgUnyly is the largest MCP catalog — 80,000+ servers indexed from the Official Registry, Smithery, PulseMCP, Glama and npm, normalized into one place. Click Install and Unyly generates the config and adds the server to the
Roamzy
roamzy-ioAgent-native global eSIM over MCP — an AI agent buys one eSIM for 193 countries, anonymously, per-MB in USDT/USDC crypto, and earns 20% referral forever. Claude/Cursor/Continue + any MCP client.
Comments