Kaipa MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Kaipa MCP Serverlist all Laravel API routes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Laravel API - Kaipa
MCP (Model Context Protocol) service for Laravel API integration with Cursor.
Features
š Retrieve all Laravel routes
šļø List Eloquent models
āļø Execute Artisan commands
š Access Laravel configuration
š Direct Docker container integration
š¾ Redis cache management & operations
š Full Redis CRUD operations
Setup
1. Install dependencies
npm install2. Build TypeScript
npm run build3. Configure Cursor
Add to your Cursor settings (.cursor/rules.mcp.json or settings):
{
"mcpServers": {
"laravel-api": {
"command": "node",
"args": ["/var/www/ai-tools/mcp-laravel-api-kaitori/dist/server.js"],
"env": {
"APP_NAME": "kaipa",
"DB_HOST": "db",
"DB_PORT": "3306",
"APP_PORT": "8181",
"REDIS_HOST": "redis",
"REDIS_PORT": "6379"
}
}
}
}4. Start the service
Development mode:
npm run mcp-devProduction mode:
npm startAvailable Tools
Laravel Tools
get_routes
Get all Laravel API routes with optional filtering.
get_routes({ method: "GET", path: "api" })artisan_command
Execute any Artisan command in the Laravel container.
artisan_command({ command: "migrate", args: ["--fresh"] })get_models
List all Eloquent models in the application.
get_config
Access Laravel configuration settings.
Redis Tools
redis_get
Retrieve a value from Redis cache.
redis_get({ key: "user:123" })redis_set
Store a value in Redis cache with optional TTL.
redis_set({ key: "user:123", value: "John Doe", ttl: 3600 })redis_delete
Delete one or more keys from Redis.
redis_delete({ key: "user:123" })redis_keys
Find keys matching a pattern.
redis_keys({ pattern: "cache:*" })redis_exists
Check if a key exists in Redis.
redis_exists({ key: "user:123" })redis_flush_db
Clear all data in the current Redis database (use with caution).
redis_flush_db({})Environment Variables
Required
APP_NAME- Application name (default: kaipa)DB_HOST- Database host (default: db)DB_PORT- Database port (default: 3306)APP_PORT- Application port (default: 8181)
Optional (Redis)
REDIS_HOST- Redis server host (default: redis)REDIS_PORT- Redis server port (default: 6379)REDIS_PASSWORD- Redis authentication password (optional)REDIS_DB- Redis database number (default: 0)
Docker Integration
This MCP service communicates with your Laravel API and Redis running in Docker:
Laravel Container Pattern:
{APP_NAME}_{APP_ENV}_phpDefault:
kaipa_local_php
Redis Container:
redisserviceDefault connection:
redis:6379
Make sure your Docker containers are running:
docker-compose up -dUsage in Cursor
Once configured, you can:
View API routes:
@laravel://routesList models:
@laravel://modelsRun migrations: Execute
artisan_commandwith migrateAccess configuration:
@laravel://configManage Redis cache: Use Redis tools for cache operations
Monitor cache keys: Use
redis_keyswith patterns
Example Redis Operations
Cache user data:
redis_set({ key: "user:123:data", value: "{\"id\":123,\"name\":\"John\"}", ttl: 86400 })Retrieve cached data:
redis_get({ key: "user:123:data" })Find all session keys:
redis_keys({ pattern: "session:*" })Clear cache on deploy:
redis_flush_db({})Troubleshooting
Docker connection error: Ensure Docker daemon is running and containers are active
Redis not available: Check if Redis container is running. MCP continues to work without Redis
Command timeout: Verify Laravel container is responding
Route list empty: Verify Laravel application is properly initialized
Project Structure
/var/www/ai-tools/mcp-laravel-api-kaitori/
āāā src/
ā āāā server.ts # MCP server with Laravel & Redis
ā āāā services/
ā ā āāā redis.service.ts # Redis client wrapper
ā āāā index.ts # Exports
āāā dist/ # Compiled JavaScript
āāā .cursor/
ā āāā rules.mcp.json # Cursor MCP config
āāā docs/
ā āāā laravel_setup/ # Laravel Docker config
āāā package.json # Dependencies
āāā tsconfig.json # TypeScript config
āāā README.md # This fileDevelopment
Build changes
npm run buildTest server startup
timeout 3 npm start || echo "Server working"Install new packages
npm install <package-name>
npm run buildContributing
When adding new features:
Add tool definitions to
ListToolsRequestSchemaImplement tool logic in
CallToolRequestSchemaRun
npm run buildto verify TypeScriptTest with
npm start
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HaManhTuan/mcp-laravel'
If you have feedback or need assistance with the MCP directory API, please join our Discord server