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服务
jobsonlook小红书MCP服务 x-s x-t js逆向
Osmosis-MCP-4B
gulp-aiAn Open Source SLM Trained for MCP
Voice Assistant
autometa-dev
FormLM
formlmBuild smart forms, scoring quizzes, and evaluation reports through natural language. An MCP Server that lets any AI agent create and manage complete assessment apps end-to-end.
SocialBu
socialbu.comConnect Claude, ChatGPT, Cursor, OpenClaw, Hermes Agent, and other MCP-compatible AI assistants to SocialBu. Create posts, use AI tools, review schedules, check analytics, and manage social media work through natural con
Comments