# Symfony Agent MCP

> Symfony Agent MCP is an open-source MCP server. Read-only Symfony introspection: routes, services, entities, Doctrine, security, Twig and more. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/shakaran/symfony-agent-mcp
- **MCP Registry name:** io.github.shakaran/symfony-agent-mcp
- **Listing updated:** 2026-11-13

## About

Read-only Symfony introspection: routes, services, entities, Doctrine, security, Twig and more.

## Install

### Claude Code (Terminal)

```sh
claude mcp add symfony-agent-mcp --env SYMFONY_MCP_SESSION_SECRET='<SYMFONY_MCP_SESSION_SECRET>' --env SYMFONY_MCP_SESSION_TOKEN='<SYMFONY_MCP_SESSION_TOKEN>' -- npx -y @shakaran/symfony-agent-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "symfony-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shakaran/symfony-agent-mcp"
      ],
      "env": {
        "SYMFONY_MCP_SESSION_SECRET": "<SYMFONY_MCP_SESSION_SECRET>",
        "SYMFONY_MCP_SESSION_TOKEN": "<SYMFONY_MCP_SESSION_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "symfony-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shakaran/symfony-agent-mcp"
      ],
      "env": {
        "SYMFONY_MCP_SESSION_SECRET": "<SYMFONY_MCP_SESSION_SECRET>",
        "SYMFONY_MCP_SESSION_TOKEN": "<SYMFONY_MCP_SESSION_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "symfony-agent-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@shakaran/symfony-agent-mcp"
      ],
      "env": {
        "SYMFONY_MCP_SESSION_SECRET": "<SYMFONY_MCP_SESSION_SECRET>",
        "SYMFONY_MCP_SESSION_TOKEN": "<SYMFONY_MCP_SESSION_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "symfony-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shakaran/symfony-agent-mcp"
      ],
      "env": {
        "SYMFONY_MCP_SESSION_SECRET": "<SYMFONY_MCP_SESSION_SECRET>",
        "SYMFONY_MCP_SESSION_TOKEN": "<SYMFONY_MCP_SESSION_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "symfony-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shakaran/symfony-agent-mcp"
      ],
      "env": {
        "SYMFONY_MCP_SESSION_SECRET": "<SYMFONY_MCP_SESSION_SECRET>",
        "SYMFONY_MCP_SESSION_TOKEN": "<SYMFONY_MCP_SESSION_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is Symfony Agent MCP free?

Yes. Symfony Agent MCP is open source, so you can use and self-host it for free.

### How do I add Symfony Agent MCP to Claude Code?

Run this command in your terminal: claude mcp add symfony-agent-mcp --env SYMFONY_MCP_SESSION_SECRET='<SYMFONY_MCP_SESSION_SECRET>' --env SYMFONY_MCP_SESSION_TOKEN='<SYMFONY_MCP_SESSION_TOKEN>' -- npx -y @shakaran/symfony-agent-mcp

---
Source: https://ai-powered.com/mcp/symfony-agent-mcp
