Download the PHP package klapaudius/symfony-mcp-server without Composer
On this page you can find all versions of the php package klapaudius/symfony-mcp-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download klapaudius/symfony-mcp-server
More information about klapaudius/symfony-mcp-server
Files in klapaudius/symfony-mcp-server
Package symfony-mcp-server
Short Description Build your own LLM tools inside your symfony project by adding to it a Model Context Protocol Server
License MIT
Homepage https://github.com/klapaudius/symfony-mcp-server
Informations about the package symfony-mcp-server
Symfony MCP Server
A powerful Symfony package to build a Model Context Protocol Server seamlessly and
build Intelligent AI Agents.
Transform your Symfony applications into powerful AI-driven systems
๐ค Unleash the Power of AI Agents in Your Symfony Apps
Symfony MCP Server enables you to build intelligent, context-aware AI agents that can reason, make decisions, and interact with your application's business logic. By implementing the Model Context Protocol (MCP), your Symfony application becomes a platform for sophisticated AI-driven automation and intelligence.
๐ฏ Why Build Agents with Symfony MCP Server?
Transform Static Tools into Intelligent Agents:
- ๐ง AI-Powered Reasoning: Tools can consult LLMs mid-execution to make smart decisions
- ๐ Dynamic Adaptation: Agents adapt their behavior based on context and real-time analysis
- ๐ก Complex Problem Solving: Break down complex tasks and solve them iteratively with AI assistance
- ๐จ Creative Generation: Generate content and solutions that evolve with user needs
Enterprise-Grade Security:
- ๐ Secure Transports: StreamableHTTP and SSE instead of STDIO for production environments
- ๐ก๏ธ Protected APIs: Keep your internal systems safe while exposing AI capabilities
- ๐๏ธ Fine-Grained Control: Manage authentication, authorization, and access at every level
Key Features:
- ๐ ๏ธ Tools: Create powerful, executable functions that LLM can invoke to interact with your application
- ๐ฌ Prompts: Define conversation starters and templates to guide AI behavior and interactions
- ๐ Resources: Expose structured data and documents that AI can read and reason about
- ๐ง Sampling: Enable tools to consult AI models mid-execution for intelligent decision-making
- ๐ Progress Streaming: Real-time progress notifications for long-running operations
- ๐จ Multi-Modal Results: Support for Text, Image, Audio, and Resource outputs from tools
- ๐ Flexible Architecture: Adapter-based design with Pub/Sub messaging for scalable deployments
๐ Agent-First Features
๐งช Sampling: The Core of Agentic Behavior (v1.4.0+)
Transform your tools into autonomous agents that can think and reason:
๐ ๏ธ Tool System: Building Blocks for Agents
Create powerful tools that AI agents can orchestrate:
- StreamableToolInterface: Real-time progress updates for long-running operations
- Multi-Result Support: Return text, images, audio, or resources
- Progress Notifications: Keep users informed during complex agent operations
- Dynamic Tool Discovery: Agents can discover and use tools based on capabilities
๐ญ Prompt Engineering for Agent Behavior
Define agent personalities and behaviors through sophisticated prompt systems:
- Context-Aware Prompts: Guide agent behavior based on application state
- Multi-Modal Support: Text, image, audio, and resource-based prompts
- Dynamic Prompt Generation: Prompts that adapt based on user interaction
๐ Resource Management for Agent Memory
Give your agents access to structured knowledge:
- Dynamic Resource Loading: Agents can access and reason about your data
- Template-Based Resources: Generate resources on-the-fly based on context
- Multi-Provider Support: File system, database, API, or custom providers
๐ฏ Real-World Agent Examples
๐ Intelligent Code Review Agent
๐ Data Analysis Agent
๐ค Customer Support Agent
๐ Quick Start: Build Your First Agent
1. Requirements
- PHP >=8.2
- Symfony >=6.4
2. Install Symfony MCP Server
Create the configuration file config/packages/klp_mcp_server.yaml and paste into it:
For more detailed explanations, you can open the default configuration file from that link.
Install the package via Composer:
Add routes in your config/routes.yaml
You're all done! Upon completing this setup, your project will include 3 new API endpoints:
- Streaming Endpoint for MCP Clients:
GET /{default_path}/sse - Request Submission Endpoint:
POST /{default_path}/messages - Streamable HTTP Endpoint:
GET|POST /{default_path}
Docker Setup (Optional)
The project includes a Docker setup that can be used for development. The Docker setup includes Nginx, PHP-FPM with Redis extension, and Redis server.
For detailed instructions on how to set up and use the Docker containers, please refer to the Development Guidelines.
3. Create Your First Tool
4. Visualizing with Inspector
You can use the Model Context Protocol Inspector to visualize and test your MCP tools:
This will typically open a web interface at localhost:6274. To test your MCP server:
5. Connect AI Clients
Your agents are now accessible to:
- ๐ค Claude Desktop / Claude.ai
- ๐ง Custom AI applications
- ๐ Any MCP-compatible client
๐๏ธ Architecture for Agent Builders
Secure Agent Communication
- StreamableHTTP: Direct, secure agent-to-client communication
- SSE (Server-Sent Events): Real-time updates for long-running agent tasks
- No STDIO: Enterprise-safe, no system exposure
Scalable Agent Infrastructure
- Pub/Sub Messaging: Handle multiple agent sessions concurrently
- Redis/Cache Adapters: Scale your agent platform horizontally
- Progress Streaming: Real-time feedback for complex agent operations
Agent Development Tools
- MCP Inspector: Visualize and debug agent behavior
- Test Commands: Rapid agent development and testing
Current Available MCP Features
| Ressources | Prompts | Tools | Discovery | Sampling | Roots | Elicitation |
|---|---|---|---|---|---|---|
| โ | โ | โ | โ | โ | โ | โ |
๐ Agent Development Resources
- ๐ Building Intelligent Tools: Complete guide to creating AI-powered tools
- ๐ง Sampling Documentation: Master agent reasoning capabilities
- ๐ญ Prompt Engineering: Design agent behaviors and personalities
- ๐ Resource Management: Give agents access to knowledge
๐ Join the Agent Revolution
Build the next generation of AI-powered applications with Symfony MCP Server. Your tools aren't just functions anymore โ they're intelligent agents capable of reasoning, learning, and evolving.
Community
- ๐ฌ GitHub Discussions: Share your agent creations
- ๐ Issue Tracker: Report bugs and request features
- ๐ Examples: Learn from working agents
๐ License
MIT License - Build freely!
๐ฐ MCP Registries referencing
- https://mcpreview.com/mcp-servers/klapaudius/symfony-mcp-server
- https://mcp.so/server/symfony-mcp-server/klapaudius
Built with โค๏ธ by Boris AUBE and the contributors - Inspired by OP.GG/laravel-mcp-server
All versions of symfony-mcp-server with dependencies
ext-json Version *
ext-fileinfo Version *
psr/log Version ^3.0
symfony/cache Version ~8.0|^7.4|^6.4
symfony/config Version ~8.0|^7.4|^6.4
symfony/console Version ~8.0|^7.4|^6.4
symfony/dependency-injection Version ~8.0|^7.4|^6.4
symfony/finder Version ~8.0|^7.4|^6.4
symfony/http-foundation Version ~8.0|^7.4|^6.4
symfony/http-kernel Version ~8.0|^7.4|^6.4
symfony/routing Version ~8.0|^7.4|^6.4
symfony/yaml Version ~8.0|^7.4|^6.4