> ## Documentation Index
> Fetch the complete documentation index at: https://docs.symbolica.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Un-MCP

<Warning>
  Un-MCP support is currently only available in Python.
</Warning>

## 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 the Agentica SDK'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.

<Tip>
  See the [Python API reference](/references/python/agents) for more details on MCP configurations.
</Tip>

## Example

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

<CodeGroup>
  ```python Agent wrap theme={null}
  from agentica import spawn
  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 = await spawn(premise="You are a helpful assistant.")
  report = await agent.call(Report, f"Create a report on Google.", mcp="./mcp-config.json")
  ```

  ```python Agentic function wrap theme={null}
  from agentica import agentic
  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

  @agentic(mcp="./mcp-config.json")
  async def run_report(company: str) -> Report:
      """
      Create a brief company report for the given company name.
      """
      ...
  ```

  ```json mcp-config.json theme={null}
  {
    "mcpServers": {
      "playwright": {
        "command": "npx",
        "args": [
          "@playwright/mcp@latest"
        ]
      }
    }
  }
  ```
</CodeGroup>
