Skip to main content
Un-MCP support is currently only available in Python.

Why

Some tools are only exposed via MCP servers, so the Agentica Python SDK allows users to provide an MCP config for agents and agentic functions to use inside the REPL. This makes the Agentica Python SDK backwards compatible with things like VSCode, Cursor and Claude Code MCP configurations!

How

We provide backwards compatibility with MCP by turning MCP tools back into regular functions to be compatible with Agentica’s execution model. We call this process un-MCP. Both remote and local MCP servers are connected to from your local machine meaning all sensitive information (e.g. API keys) is secure.
See the Python API reference for more details on MCP configurations.

Example

Below is an example of an agent and an agentic function that can use tools from the Playwright MCP server in their REPL.
from agentica import agent
from dataclasses import dataclass

@dataclass
class Report:
    """
    Args:
        name:
            The official company name.
        blurb:
            A 1-2 sentence description of the company's main business focus.
    """
    name: str
    blurb: str

agent = spawn("You are a helpful assistant.")
report = await agent.call(Report, f"Create a report on Google.", mcp="./mcp-config.json")