Skip to main content

Fastmcp Agents Project

Project description

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"
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 uv run fastmcp_agents config --bundled nickclyde_duckduckgo-mcp-server run

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"
  ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastmcp_agents-0.3.0.tar.gz (257.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastmcp_agents-0.3.0-py3-none-any.whl (97.4 kB view details)

Uploaded Python 3

File details

Details for the file fastmcp_agents-0.3.0.tar.gz.

File metadata

  • Download URL: fastmcp_agents-0.3.0.tar.gz
  • Upload date:
  • Size: 257.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.12

File hashes

Hashes for fastmcp_agents-0.3.0.tar.gz
Algorithm Hash digest
SHA256 24a779a8d2a0fd7b5f2e08b6a64bac086794674ac216e9225a6a70ccf0a0c25c
MD5 6042a03d270c42c4b9ab9934eee88c61
BLAKE2b-256 c8b81a1c0ec7f2f2bb99a6dc14a6371582327a968023659bffed22e17cc13014

See more details on using hashes here.

File details

Details for the file fastmcp_agents-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastmcp_agents-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cd44808b931cb565c4823d2ca4194c4359590e1d0516570264f5aae51a01330
MD5 3ed9a9fa0a133aab7a1d48c3175f4204
BLAKE2b-256 d9c85e755aa1d2942350e298d50f6aa69d39a7ef23e263f399f94b63b6bad299

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page