
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A Symfony package for building a Model Context Protocol server to expose tools, prompts, and resources to AI clients.
Symfony MCP Server is cataloged as an MCP server attributed to klapaudius. A Symfony package for building a Model Context Protocol server to expose tools, prompts, and resources to AI clients. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Symfony MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Resources, prompts, and tools are supported; discovery, roots, and elicitation are not yet available.
README.md · eeaeb2701999 · 采集于 2026-11-13 09:46:42 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
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
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.
Transform Static Tools into Intelligent Agents:
Enterprise-Grade Security:
Key Features:
Transform your tools into autonomous agents that can think and reason:
class IntelligentAnalyzer implements SamplingAwareToolInterface
{
private SamplingClient $samplingClient;
public function execute(array $arguments): ToolResultInterface
{
// Check if sampling is available
if ($this->samplingClient !== null && $this->samplingClient->isEnabled()) {
try {
// Let AI analyze and reason about complex data
$response = $this->samplingClient->createTextRequest(
"Analyze this data and suggest optimizations: {$arguments['data']}",
new ModelPreferences(
[['name' => 'claude-3-sonnet']],
0.3, // costPriority
0.8, // intelligencePriority
0.2 // speedPriority
),
'You are a data analysis expert.',
2000
);
// Execute actions based on AI reasoning
return new TextToolResult($response->getContent()->getText());
} catch (\Exception $e) {
// Fallback to basic analysis
return new TextToolResult('Basic analysis: Data structure appears valid.');
}
}
return new TextToolResult('Advanced analysis requires AI capabilities.');
}
public function setSamplingClient(SamplingClient $samplingClient): void
{
$this->samplingClient = $samplingClient;
}
}
Create powerful tools that AI agents can orchestrate:
Define agent personalities and behaviors through sophisticated prompt systems:
Give your agents access to structured knowledge:
class CodeReviewAgent implements SamplingAwareToolInterface
{
private SamplingClient $samplingClient;
public function execute(array $arguments): ToolResultInterface
{
// Check if sampling is available
if ($this->samplingClient !== null && $this->samplingClient->isEnabled()) {
try {
// AI analyzes code for patterns, security, and best practices
$review = $this->samplingClient->createTextRequest(
"Review this code for security vulnerabilities, performance issues, and suggest improvements: {$arguments['code']}",
new ModelPreferences(
[['name' => 'claude-3-sonnet']],
0.2, // costPriority
0.8, // intelligencePriority
0.2 // speedPriority
),
'You are a senior code reviewer with expertise in security and performance.',
2000
);
// Generate actionable recommendations
return new TextToolResult($this->formatReview($review->getContent()->getText()));
} catch (\Exception $e) {
// Fallback to basic analysis
return new TextToolResult('Basic code review: Structure appears valid.');
}
}
return new TextToolResult('Advanced code review requires AI capabilities.');
}
public function setSamplingClient(SamplingClient $samplingClient): void
{
$this->samplingClient = $samplingClient;
}
}
class DataInsightAgent implements SamplingAwareToolInterface, StreamableToolInterface
{
private SamplingClient $samplingClient;
private ?ProgressNotifierInterface $progressNotifier = null;
public function execute(array $arguments): ToolResultInterface
{
// Check if sampling is available
if ($this->samplingClient !== null && $this->samplingClient->isEnabled()) {
try {
// Multi-step reasoning process
$steps = [
'Identify patterns and anomalies',
'Generate statistical insights',
'Create visualizations',
'Recommend actions'
];
$this->progressNotifier?->sendProgress(
progress: 0,
total: count($steps)+1,
message: "Analyzing dataset..."
);
$insights = [];
foreach ($steps as $i => $step) {
$response = $this->samplingClient->createTextRequest(
"$step for this data: {$arguments['data']}",
new ModelPreferences(
[['name' => 'claude-3-sonnet']],
0.2, // costPriority
0.8, // intelligencePriority
0.2 // speedPriority
),
'You are a data analysis expert.',
2000
);
$insights[] = $response->getContent()->getText();
$this->progressNotifier?->sendProgress(
progress: $i+1,
total: count($steps)+1,
message: $step
);
}
return new TextToolResult($this->compileReport($insights));
} catch (\Exception $e) {
return new TextToolResult('Basic data analysis: Dataset appears well-formed.');
}
}
return new TextToolResult('Advanced data analysis requires AI capabilities.');
}
public function setSamplingClient(SamplingClient $samplingClient): void
{
$this->samplingClient = $samplingClient;
}
public function setProgressNotifier(ProgressNotifierInterface $progressNotifier): void
{
$this->progressNotifier = $progressNotifier;
}
}
class SupportAgent implements SamplingAwareToolInterface
{
private SamplingClient $samplingClient;
public function execute(array $arguments): ToolResultInterface
{
// Check if sampling is available
if ($this->samplingClient !== null && $this->samplingClient->isEnabled()) {
try {
// Load customer context
$context = $this->loadCustomerHistory($arguments['customer_id']);
// AI determines best response strategy
$response = $this->samplingClient->createTextRequest(
"Customer issue: {$arguments['issue']}\nHistory: $context\nDetermine the best resolution approach.",
new ModelPreferences(
[['name' => 'claude-3-sonnet']],
0.2, // costPriority
0.8, // intelligencePriority
0.2 // speedPriority
),
'You are an expert customer support agent.',
2000
);
// Send back the strategy for user approval
return new TextToolResult($response->getContent()->getText());
} catch (\Exception $e) {
return new TextToolResult('Standard support response: We will review your issue and respond within 24 hours.');
}
}
return new TextToolResult('Personalized support requires AI capabilities.');
}
public function setSamplingClient(SamplingClient $samplingClient): void
{
$this->samplingClient = $samplingClient;
}
}
```yaml
klp_mcp_server:
enabled: true
server:
name: 'My MCP Server'
version: '1.0.0'
default_path: 'mcp'
ping:
enabled: true # Read the warning section in the default configuration file before disable it
interval: 30
server_providers: ['streamable_http','sse']
sse_adapter: 'cache'
adapters:
cache:
prefix: 'mcp_sse_'
ttl: 100
tools:
- KLP\KlpMcpServer\Services\ToolService\Examples\CodeAnalyzerTool # Agentic tool sample
- KLP\KlpMcpServer\Services\ToolService\Examples\HelloWorldTool
- KLP\KlpMcpServer\Services\ToolService\Examples\ProfileGeneratorTool
- KLP\KlpMcpServer\Services\ToolService\Examples\SearchResultsTool
- KLP\KlpMcpServer\Services\ToolService\Examples\StreamingDataTool
- KLP\KlpMcpServer\Services\ToolService\Examples\VersionCheckTool
prompts:
- KLP\KlpMcpServer\Services\PromptService\Examples\CodeReviewPrompt # Agentic prompt sample
- KLP\KlpMcpServer\Services\PromptService\Examples\HelloWorldPrompt
resources:
- KLP\KlpMcpServer\Services\ResourceService\Examples\HelloWorldResource
- KLP\KlpMcpServer\Services\ResourceService\Examples\ProjectSummaryResource # Agentic resource sample
resources_templates:
- KLP\KlpMcpServer\Services\ResourceService\Examples\DynamicAnalysisResource # Agentic resource template sample
- KLP\KlpMcpServer\Services\ResourceService\Examples\McpDocumentationResource
```
For more detailed explanations, you can open the default configuration file from that link.
composer require klapaudius/symfony-mcp-server
config/routes.yamlklp_mcp_server:
resource: '@KlpMcpServerBundle/Resources/config/routes.php'
type: php
You're all done! Upon completing this setup, your project will include 3 new API endpoints:
GET /{default_path}/ssePOST /{default_path}/messagesGET|POST /{default_path}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.
# Generate a new tool
php bin/console make:mcp-tool MyCustomTool
# Test your tool locally
php bin/console mcp:test-tool MyCustomTool --input='{"task":"analyze this code"}'
You can use the Model Context Protocol Inspector to visualize and test your MCP tools:
# Run the MCP Inspector without installation
npx @modelcontextprotocol/inspector node build/index.js
This will typically open a web interface at localhost:6274. To test your MCP server:
Your agents are now accessible to:
| Ressources | Prompts | Tools | Discovery | Sampling | Roots | Elicitation |
|---|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ |
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.
MIT License - Build freely!
Built with ❤️ by Boris AUBE and the contributors - Inspired by OP.GG/laravel-mcp-server
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Symfony MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/symfony-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.