Any Agent

v1.0.0Coding Agentsstable

A single interface to use and evaluate different agent frameworks

a2aagent-evaluationagentsaimcp
Share:
1,168
Stars
0
Downloads
0
Weekly
0/5

What is Any Agent?

Any Agent is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to single interface to use and evaluate different agent frameworks

A single interface to use and evaluate different agent frameworks

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A single interface to use and evaluate different agent frame

Use Cases

Compare and evaluate agent frameworks
Unified interface for different agents
mozilla-ai

Maintainer

LicenseApache-2.0
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx any-agent

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Any Agent

any-agent is a Python library and MCP server from Mozilla AI that provides a single unified interface for running and evaluating agents across seven different frameworks — TinyAgent, Google ADK, LangChain, LlamaIndex, OpenAI Agents, Smolagents, and Agno AI. It lets developers switch the underlying agent framework with a single parameter change, run the same task against multiple frameworks for comparison, and evaluate agent traces with a built-in assessment layer. This is especially useful for benchmarking, choosing the right framework for a task, or migrating between agent systems without rewriting tool definitions.

Prerequisites

  • Python 3.11 or later installed
  • pip or uv for package installation
  • An API key for your chosen LLM provider (e.g. OPENAI_API_KEY, MISTRAL_API_KEY, ANTHROPIC_API_KEY)
  • An MCP-compatible client if using the MCP server interface
1

Install any-agent

Install the package from PyPI. Use bracket notation to include optional framework dependencies for the frameworks you plan to use.

pip install 'any-agent'
# Or with specific framework extras:
pip install 'any-agent[openai,langchain]'
2

Set your LLM provider API key

Export the API key for your chosen model provider. any-agent supports OpenAI, Mistral, Anthropic, and any other provider compatible with the underlying framework.

export OPENAI_API_KEY="your-openai-key"
# or
export MISTRAL_API_KEY="your-mistral-key"
# or
export ANTHROPIC_API_KEY="your-anthropic-key"
3

Create and run an agent in Python

Import AnyAgent and AgentConfig, pick a framework and model, provide built-in or custom tools, and run a task. The framework parameter is the only thing that changes when switching between agent implementations.

from any_agent import AgentConfig, AnyAgent
from any_agent.tools import search_web, visit_webpage

agent = AnyAgent.create(
    "openai",  # switch to "langchain", "smolagents", etc.
    AgentConfig(
        model_id="gpt-4o-mini",
        instructions="Use tools to answer the question",
        tools=[search_web, visit_webpage]
    )
)

trace = agent.run("What are the top Python agent frameworks in 2025?")
4

Compare the same task across frameworks

Run the same AgentConfig against multiple framework names and compare the traces, tool calls, and final answers to choose the best fit for your use case.

5

Add any-agent as an MCP server for your AI client

Register any-agent's MCP server in your client configuration to expose agent evaluation and execution capabilities as MCP tools accessible from Claude or other assistants.

Any Agent Examples

Client configuration

Configure Claude Desktop to launch the any-agent MCP server, passing the required API key through the environment.

{
  "mcpServers": {
    "any-agent": {
      "command": "python",
      "args": ["-m", "any_agent.mcp"],
      "env": {
        "OPENAI_API_KEY": "your-openai-api-key"
      }
    }
  }
}

Prompts to try

Example prompts and Python interactions for evaluating and comparing agent frameworks.

- "Run this research task using LangChain and show me the tool calls it made"
- "Compare how TinyAgent and OpenAI Agents handle this web search task and tell me which was more efficient"
- "Evaluate the agent trace from the last run and score its accuracy and tool use"
- "Which agent frameworks support streaming responses?"
- "Run the same task with smolagents and agno and compare the results"

Troubleshooting Any Agent

Import error for a specific framework like LangChain or Smolagents

Install the framework-specific extras: `pip install 'any-agent[langchain]'` or `pip install 'any-agent[smolagents]'`. Each framework has optional dependencies that are not installed by default.

Agent run fails with 'Python 3.11 required' error

any-agent requires Python 3.11 or newer. Check your version with `python --version`. Use pyenv or conda to install 3.11+ if your system Python is older.

search_web tool fails or returns no results

The built-in search_web tool may require additional configuration depending on the search backend used by the framework. Verify your OPENAI_API_KEY or relevant provider key is set, and check whether the framework requires a separate search API key (e.g. SERPAPI_API_KEY).

Frequently Asked Questions about Any Agent

What is Any Agent?

Any Agent is a Model Context Protocol (MCP) server that single interface to use and evaluate different agent frameworks It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Any Agent?

Follow the installation instructions on the Any Agent GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Any Agent?

Any Agent works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Any Agent free to use?

Yes, Any Agent is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "any-agent": { "command": "npx", "args": ["-y", "any-agent"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Any Agent?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides