symfony-mcp-server
by klapaudius·★ 30·Score 44
A Symfony package for building enterprise-grade MCP servers with real-time communication and AI agent capabilities.
Overview
Symfony MCP Server is a PHP-based implementation of the Model Context Protocol that enables developers to build intelligent AI agents within Symfony applications. It supports real-time communication through Server-Sent Events (SSE) and StreamableHTTP, making it suitable for production environments. The package offers a comprehensive tool system with features like sampling for AI-powered reasoning, prompt engineering for agent behavior, and resource management for agent memory.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this when building enterprise-grade AI agents within Symfony applications that require secure real-time communication and intelligent tool behavior with LLM integration.
When NOT to choose this
Avoid if you're not using Symfony or PHP in your tech stack, as this is tightly coupled to the Symfony framework and won't integrate with other backend technologies.
Tools this server exposes
12 tools extracted from the READMECodeAnalyzerToolAnalyzes code for patterns, security, and suggests improvements
HelloWorldToolA basic tool for greeting and demonstrating functionality
ProfileGeneratorToolGenerates user profiles based on input parameters
SearchResultsToolSearches for and returns relevant information based on query
StreamingDataToolProvides real-time streaming data for long-running operations
VersionCheckToolChecks and reports version information for components
DataInsightAgentPerforms intelligent analysis of datasets with AI reasoning
CustomerSupportAgentHandles customer inquiries with AI-powered support
CodeReviewAgentReviews code for security, best practices, and improvements
IntelligentAnalyzerAnalyzes complex data using AI reasoning for decision making
SupportAgentProvides personalized customer support with AI assistance
StreamingDataToolProvides real-time streaming data with progress notifications
Comparable tools
Installation
Installation
- Install the package via Composer:
composer require klapaudius/symfony-mcp-server- Configure the bundle in your
config/bundles.php:
return [
// ...
Klapaudius\SymfonyMcpServer\SymfonyMcpServerBundle::class => ['all' => true],
];- Configure the MCP server in your
config/packages/symfony_mcp_server.yaml:
symfony_mcp_server:
transport: 'sse' # or 'streamable_http'
tools:
- App\Tools\IntelligentAnalyzer
- App\Tools\CodeReviewAgent- Start the server:
php bin/console server:startFor Claude Desktop integration, add to your claude_desktop_config.json:
{
"mcpServers": {
"symfony-mcp": {
"command": "php",
"args": ["bin/console", "mcp:server"],
"env": {
"APP_ENV": "dev"
}
}
}
}FAQ
- What makes this package different from other MCP servers?
- This package is specifically designed for Symfony applications and focuses on building AI agents rather than just exposing tools. It features sampling for real-time AI reasoning, multi-result support, and enterprise-grade security features.
- Can I use this with AI models other than Claude?
- Yes, the package is designed to be model-agnostic. While the examples show Claude integration, the sampling system can work with any compatible AI model through appropriate adapter implementations.
Compare symfony-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.