Feedback

Basic information

Runtime
php
Category
License
MIT license
Author
settledco
Submitted by
Community
Quality
25
Stars
4

About MCP for Laravel

# MCP for Laravel\n\n[![Latest Stable Version](https://poser.pugx.org/settled/mcp-laravel/v/stable)](https://packagist.org/packages/settled/mcp-laravel)\n[![License](https://poser.pugx.org/settled/mcp-laravel/license)](//packagist.org/packages/settled/mcp-laravel)\n\n> MCP (Model Context Protocol) for Laravel - A powerful AI framework for building intelligent applications. Based on [inspector-apm/neuron-ai](https://github.com/inspector-apm/neuron-ai)\n\n## Requirements\n\n- PHP: ^8.0\n- Laravel: ^11.0\n\n## Official documentation\n\n**[Go to the official documentation](https://neuron.inspec...

MCP for Laravel is a MCP client in the Other category listed in the AddMCP.net directory, published by settledco. Runtime: php. License: MIT license. The repository has 4 GitHub stars. Source code is hosted on github.com.

MCP for Laravel config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

MCP for Laravel tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP for Laravel?

MCP for Laravel is a PHP package for Laravel 11 that provides a framework for building intelligent AI agents using the Model Context Protocol (MCP). It is designed for developers who want to integrate LLM-powered agents with tool calling, memory, and RAG capabilities into Laravel applications.

How to use MCP for Laravel?

Install the package via Composer with composer require settled/mcp-laravel. Then create an agent by extending the Settled\\MCP\\Agent class, configure an LLM provider (e.g., Anthropic, Ollama, OpenAI, Mistral, Deepseek), and define instructions using the SystemPrompt class. Send prompts to the agent with $agent->run(new UserMessage(...)). Connect MCP servers by using the McpConnector component inside the agent’s tools array.

Key features of MCP for Laravel

  • Pre-built Agent class with automatic memory and tool management
  • MCP server connector to import external tools via McpConnector
  • Support for multiple LLM providers (Anthropic, Ollama, OpenAI, Mistral, Deepseek)
  • SystemPrompt helper for consistent instruction building
  • RAG (Retrieval-Augmented Generation) support with vector stores and embeddings

Use cases of MCP for Laravel

  • Creating a YouTube video summarizer agent with transcription tools
  • Building an SEO analysis agent that uses MCP server tools
  • Implementing a RAG chatbot that queries a vector database

Frequently asked questions

1 What LLM providers does MCP for Laravel support?

It supports Anthropic, Ollama, OpenAI, Mistral, and Deepseek. Switching providers requires only a single line of code.

2 How do I connect an MCP server to my agent?

Use the McpConnector class inside the agent’s tools() method, providing the command and arguments for the MCP server (e.g., 'npx -y @modelcontextprotocol/server-everything'). The connector automatically exposes the server’s tools.

3 What are the system requirements for MCP for Laravel?

PHP ^8.0 and Laravel ^11.0 are required.

4 Does the agent have built-in memory?

Yes, the Agent class automatically retains conversation history, as shown in the sample where the agent remembers the user’s name from a previous message.

5 Can I build a RAG system with this package?

Yes, by extending the RAG class and attaching an embeddings provider (e.g., VoyageEmbeddingProvider) and a vector store (e.g., PineconeVectoreStore).

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬