Skip to main content

FastMCP 🚀 Agents 🤖

FastMCP Agents bridges the gap between the generic tools in MCP servers and the specialized tools you need to solve your problem and gives you a straight-forward way to manage tool sprawl:

  1. It turns generic tools in any MCP server into specialized tools that you can use anywhere
  2. It can (optionally) embed an expert Agent into any MCP server

Whether you wrote the MCP server or GitHub did, FastMCP Agents can "wrap" any MCP server.

Give me an example!

Nick Clyde has a great DuckDuckGo MCP server. So let's take his MCP Server and embed an Agent into it, let's make that Agent never return results from allrecipes.com. For the following example, you do not need to clone this repository:

export MODEL="gemini/gemini-2.5-flash-preview-05-20"
export GEMINI_API_KEY="abc123"

Or if you're logged into Google Cloud (via gcloud init), you can use the following:

export MODEL="vertex_ai/gemini-2.5-flash-preview-05-20"

(Note Gemini is not required -- you can provide any litellm model here with the provider auth as long as the model supports mandatory tool calling.)

uvx fastmcp_agents cli \
    agent \
    --name duckduckgo_agent \
    --description "Search with DuckDuckGo" \
    --instructions "You are an assistant who refuses to show results from allrecipes.com.  " \
    call duckduckgo_agent '{"task": "Search for recipes for preparing fried cheese curds. Tell me what makes each one special."}' \
    wrap uvx git+https://github.com/nickclyde/duckduckgo-mcp-server.git@d198a2f0e8bd7c862d87d8517e1518aa295f8348

Here are some recipes for preparing fried cheese curds:
Homemade Culver's Recipe from CopyKat Recipes: https://copykat.com/culvers-fried-cheese-curds/
Food Network: https://www.foodnetwork.com/recipes/amanda-freitag/fried-cheese-curds-31689 39
House of Nash Eats: https://houseofnasheats.com/fried-cheese-curds/
....

How do I use it?

Follow our quickstart guide to get started.

Why Agents as Tools?

Bad Tools make bad Agents

Every MCP Server has a set of tools. It's up to the AI Agent to figure out, based on the provided names, descriptions, and arguments for the tools, how to leverage them to solve the user's question. When there's a problem with the instructions, the AI Agent's performance suffers.

Generic Tools are Bad Tools

With MCP, you run around and hook in all of these generic Tools to your various AI Agents and you let the AI Agent decide which ones are the right ones. A simple 3 MCP Server workflow can easily have 100+ tools. Each one is a shiny distraction on the path to solving the user's problem. These tools do almost the right thing almost most of the time.

Specialized Tools don't scale

So like me, you decide that your AI Agents shouldn't have 100 tools, they should only know about the exact tools they need to complete the task at hand. So you give up on MCP servers, write all your own tools.

How's it work?!

Simply take your existing MCP Server

"mcp-server-tree-sitter": {
  "command": "uvx",
  "args": ["mcp-server-tree-sitter"]
}

And wrap it with an Agent:

"mcp-server-tree-sitter": {
  "command": "uvx",
  "args": [
    "fastmcp_agents", "cli",
    "agent",
    "--name","ask_tree_sitter",
    "--description", "Ask the tree-sitter agent to find items in the codebase.",
    "--instructions", "You are a helpful assistant that provides users a simple way to find items in their codebase.",
    "wrap", 
    "uvx", "mcp-server-tree-sitter"
  ]
}

Release files for fastmcp-agents 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastmcp-agents 0.4.1
File Size Uploaded
fastmcp_agents-0.4.1.tar.gz 274.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastmcp-agents 0.4.1
File Interpreter ABI Platform
fastmcp_agents-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 377.6 kB

Release files / fastmcp_agents-0.4.1.tar.gz

Download URL fastmcp_agents-0.4.1.tar.gz
Size 274.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7904cc529a827a4e54379512df66c8bded8ea992e32cf138b73f8f2f3a318894
BLAKE2b-256 checksum
How to use checksums
01be78d88d4131987ce85b1cc65f833c2fda4d63855e8e240b7e42b97e5859cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.13

Release files / fastmcp_agents-0.4.1-py3-none-any.whl

Download URL fastmcp_agents-0.4.1-py3-none-any.whl
Size 103.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
373f8408a5cb480461d6ab2a0d45025d057e8d037ed6ea5e0fe8a766cc3d642f
BLAKE2b-256 checksum
How to use checksums
16bddd297eb168eeff86aef5324e2ce56edbf2db4bba55140f512399cfea6a81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.13

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page