mcp_server

iliepandia/mcp_server

3.2

If you are the rightful owner of mcp_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project is an MCP Server built on top of Laravel, utilizing SSE transport and Docker for real-time event handling.

Tools
2
Resources
0
Prompts
0

MCP Server with a Laravel App- SSE Transport

This is a project start for an MCP Server built on top of Laravel.

It uses opgginc/laravel-mcp-server inside of a docker image.

Docker Setup

I have used docker because the SSE (Server Side Events) requires a custom setup for nginx, namely we cannot buffer the laravel output, since events need to be sent in real time.

And the laravel-mcp-server needs a Redis instance to function.

Start the server

To start the server, clone the repository and then start the container with:

docker compose up -d

Next connect to the web server with

bin/web-connect

Install the PHP dependencies

./composer install

Confirm you can run artisan

./artisan about

Exit the container

exit

Confirm that the web server is working:

http://localhost:8013/ (HTTP)

or

https://localhost:8012/ (HTTPS)

And you should get this message:

"You can access the app via a standard HTTP Request"

Accessing the MCP Server

To access the server via MCP, I recommend the Postman MCP Client.

Create a new MCP request for this url http://localhost:8013/mcp/sse and click connect.

You should now see the list of tools:

  • hello world
  • check-version

Troubleshooting

Confirm the docker containers are running

docker compose stats

Confirm you can access the web server

Navigate to these URLs:

Check the logs

Laravel logs are here source/storage/logs.

PHP and Nginx logs are here: docker/logs.