Order Status Server
БесплатноНе проверенLaravel MCP server that provides a tool to look up order status by order ID from a MySQL database.
Описание
Laravel MCP server that provides a tool to look up order status by order ID from a MySQL database.
README
Youtube Video
Why Choose a Laravel-Based MCP Server?
- If your application is built on
Laravel, developing aMCP Serverdirectly within your existing codebase is often more efficient and secure than maintaining a separate Python microservice. - By using Laravel as your MCP host, you create a seamless translation layer that exposes your data, business logic, and internal functions directly to AI agents like Antigravity or Claude Code
Key Advantages
- Native Access to Business Logic: Skip the overhead of building and securing custom REST APIs. Your AI tools can interact directly with your database, Eloquent models, relationships, and internal services using code you already have.
- Enterprise-Grade Security: Leverage Laravel’s mature security ecosystem. You can utilize built-in features like Laravel Sanctum for authentication and standard middleware for rate-limiting, ensuring your AI integrations are protected by the same rigorous standards as your web app.
- Robust, Familiar Architecture: Benefit from built-in Artisan scaffolding to generate tools quickly, keep AI-specific logic organized in a dedicated
app/Mcpdirectory, and offload resource-intensive tasks to your existing Laravel Queue infrastructure for better performance.
Requirements
- PHP: 8.3 or Higher
- Laravel: 13.8 or Higher
- MySql: 9.3.0 or Higher
How to run
- Clone this repository
git clone
- Create
.envfile
copy .env.example .env
- Update
.envfile with MySQL connection settings
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=mcp-db
DB_USERNAME=root
DB_PASSWORD='Password'
- Generate encryption key for App
php artisan key generate
- run migration
php artisan migrate
- run db-seed
php artisan db:seed
- run the app
php artisan server
Design
- Database Model
| Model | App\Models\OrderStatus |
|---|---|
| Table | order_status |
| Fields | order_id(integer),product,status |
- Database seed
- Database\Seeders\OrderStatusSeeder
- contains some entries for order status
| order_id | product | status \ |
|---|---|---|
| 1 | Noodles | PENDING |
| 2 | Sauce | PROCESSING |
- MCP Tool
- App\Mcp\Tools\OrderStatusFinderTool
- name :
order-status-finder - what it do : Find and return status of order in structured format
- MCP Server
- App\Mcp\Servers\OrderStatusServer
- name :
Order Status Server - contains : One tool (OrderStatusFinderTool), no resources, no prompts
How to test
- make sure MCP Server is running
- execute
php artisan serveat terminal to run MCP Server
Via Postman
- File -> New -> MCP
- Request Type : Change from STDIO to HTTP
- URL : http://127.0.0.1:8000/mcp/order-status
- Press Connect
- Now Click Tools::Order Status Finder Tool
- Enter Order Id as
1or2and Press run - Click response at Bottom to View Output
Via Antigravity CLI
- Config Open ~/.gemini/config/mcp_config.json
Add:
{
"mcpServers": {
"order-status": {
"serverUrl": "http://127.0.0.1:8000/mcp/order-status/",
"headers": {
"Accept": "application/json, text/event-stream",
"Content-Type": "application/json"
}
}
}
}
- Launch Antigravity CLI
agy
Prompt: What is the status of order id 2
Via ADK 2.0 Agent
# mcp_client.py
from google.adk.agents import LlmAgent
from google.adk.tools.mcp_tool import McpToolset
from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPConnectionParams
# Configure connection parameters for the remote HTTP server
connection_params = StreamableHTTPConnectionParams(
url="http://127.0.0.1:8000/mcp/order-status",
headers={
"Accept": "application/json, text/event-stream",
"Content-Type":"application/json"
}
)
# Instantiate the toolset
mcp_tools = McpToolset(connection_params=connection_params)
root_agent = LlmAgent(
model="gemini-2.5-flash-lite",
name="order_status_agent",
instruction="""
You are a helpful assistant who has insight about github accounts
""",
tools=[mcp_tools],
)
Prompt: What is the status of order id 2
Laravel MCP Documentation
Visit: https://laravel.com/docs/13.x/mcp
GIT REPO URL
https://github.com/10xroadmap/laravel-mcp-server-tool-demo
License or Terms of Use
This project is open-source. However, no part of the source code may be republished, modified, or distributed for commercial or public purposes without giving appropriate credit to the original author.
Установка Order Status Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/10xroadmap/laravel-mcp-server-tool-demoFAQ
Order Status Server MCP бесплатный?
Да, Order Status Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Order Status Server?
Нет, Order Status Server работает без API-ключей и переменных окружения.
Order Status Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Order Status Server в Claude Desktop, Claude Code или Cursor?
Открой Order Status Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Order Status Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
