Turn your existing PHP controllers into AI-callable tools instantly. Use Scribe or L5-Swagger to generate an OpenAPI spec, feed it to wmcp.sh, and your Laravel backend becomes a native MCP server for Claude and other agent frameworks.
If you have a Laravel backend, you already have validated requests, Eloquent models, and business logic. But exposing these to AI agents typically requires rewriting your controllers into a custom Model Context Protocol (MCP) server, dealing with transport layers and schema duplication.
wmcp.sh eliminates this rewrite. By generating an OpenAPI spec from your existing PHP annotations, you can instantly expose your routes to agents without changing your app architecture.
<?php
/**
* Create Order
*
* Creates a new order for the authenticated user.
*
* @bodyParam sku string required The product SKU. Example: PROD-123
* @bodyParam qty integer required The quantity. Example: 2
* @response 201 { "id": 99, "status": "created" }
*/
public function store(Request $request)
{
$validated = $request->validate([
'sku' => 'required|string',
'qty' => 'required|integer|min:1',
]);
$order = Order::create($validated);
return response()->json($order, 201);
}
# 1. Generate spec: php artisan scribe:generate
# 2. Extract tools via wmcp.sh API
curl -X GET "https://wmcp.sh/api/v1/tools?url=https://your-laravel-app.com/docs/openapi.yaml"
| Capability | Without wmcp.sh (Hand-rolled) | With wmcp.sh |
|---|---|---|
| Setup time | ⚠️ Weeks of custom routing | ✅ Zero — just point at spec URL |
| Existing middleware | ❌ Must rebuild in MCP server | ✅ Preserved (Sanctum/Passport runs on origin) |
| Auth flow | ⚠️ Re-implement token logic | ✅ Declared in spec, auto-injected |
| Spec generator | ❌ N/A | ✅ Scribe, L5-Swagger, or manual |
| Tool Shape | ⚠️ Manually mapped | ✅ Native MCP / tool_use generated |
We recommend knuckleswtf/scribe for extracting specs from existing PHPDoc and form requests. darkaonline/l5-swagger is also fully supported if you prefer Swagger-PHP annotations.
Just declare the auth requirement in your OpenAPI spec (e.g., Bearer auth). wmcp.sh forwards the token provided by the agent. Your existing Sanctum or Passport middleware handles verification seamlessly.
Don't expose them in the spec, or use OpenAPI tags. Tag safe routes with agent and pass ?tag=agent when registering the spec URL with wmcp.sh.
wmcp.sh adds sub-100ms latency to proxy the call. The actual response time depends entirely on your Laravel app's performance.
Custom adapter + hosted MCP at mcp.yourbrand.com + verified badge. From $499 one-time setup.