Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mcp Sdk Laravel Package

php-llm/mcp-sdk

A PHP SDK for the Model Context Protocol (MCP), helping developers build MCP servers and clients with tools, resources, prompts, and transports for connecting LLM applications to external data and workflows. Framework-agnostic and suitable for Laravel or standalone PHP projects.

Deep Wiki
Context7

Technical Evaluation

Architecture fit: php-llm/mcp-sdk is a framework-agnostic PHP SDK for MCP client and server applications. In a Laravel context, it would sit behind an adapter/service-provider layer, not act as a native Laravel package. It is a reasonable fit for exposing Laravel domain services as MCP tools/resources/prompts to AI clients, or for Laravel jobs to call external MCP servers. It is a poor fit as a strategic core dependency because it is archived and has low adoption signals.

Integration feasibility: Composer installation may be feasible, but the repository is unknown and the package is archived. Provenance, Packagist status, dependency tree, PHP version constraints, and transport support must be verified before any pilot. MIT licensing allows forking, which is likely the only viable production path if the package is adopted.

Technical risk: High. Archived status means no expected security patches, bug fixes, or MCP specification updates. With 34 stars and a low score of 0.332, community support and production validation are limited. MCP is still evolving quickly, so a frozen SDK risks incompatibility with newer clients, transports, auth patterns, and tool-schema expectations.

Key questions: Which MCP specification version does it implement? Does it support both client and server roles? Which transports are supported: stdio, HTTP/SSE, or streamable HTTP? What authentication and authorization hooks exist? Which PHP and Laravel versions are compatible? What is the test coverage and dependency footprint? Is there a maintained fork or credible alternative? Can tool execution be audited, rate-limited, and governed?

TPM position: Treat this as a reference implementation or time-boxed proof-of-concept accelerator, not a production dependency, unless the team explicitly funds a fork and owns maintenance.

Integration Approach

Stack fit: Wrap the SDK in a Laravel service provider and bind MCP client/server interfaces through the container. Keep domain services decoupled from MCP schemas and transport concerns. Add configuration for server name, capabilities, transports, auth, timeouts, and allowed tools. Use Laravel middleware for authentication, authorization, rate limiting, and audit logging.

Migration path: Start with a non-production spike that exposes one read-only Laravel capability as an MCP tool. If viable, vendor or fork the package, pin the commit, add tests, and publish as an internal Composer package. Build an adapter layer so the SDK can later be replaced by a maintained SDK or a minimal in-house implementation without rewriting domain logic.

Compatibility: Verify PHP version support, Laravel version compatibility, PSR interfaces, Symfony component constraints, and transport dependencies. Confirm whether the SDK expects long-running CLI processes, ReactPHP/Amp-style event loops, or standard Laravel HTTP workers. Do not use stdio transport in normal Laravel web request paths; reserve it for CLI/desktop-style integrations. Validate behavior under Laravel Octane and queue workers.

Sequencing:

  1. Confirm business use case and MCP conformance requirements.
  2. Run a two-week technical spike with one read-only tool and one client integration.
  3. Complete license, security, dependency, and provenance review.
  4. Decide fork vs build vs alternative SDK.
  5. If proceeding, wrap in an internal package with tests and governance controls.
  6. Pilot with limited users and read-only or low-risk tools before enabling write actions.

Operational Impact

Maintenance: Archived status shifts full maintenance to the adopting team. Expect to pin versions, monitor MCP spec changes, patch dependencies, and maintain a fork. Budget ongoing engineering ownership even for a narrow use case.

Support: Upstream support should be assumed unavailable. Community activity is low. The team will need internal runbooks for configuration, tool registration, transport failures, auth errors, and client compatibility issues.

Scaling: MCP tool calls are API-like workloads and need timeouts, concurrency limits, rate limits, payload size limits, and audit trails. Long-running tools should run through Laravel queues. Stateful transports require careful worker and connection lifecycle management. Avoid coupling tool execution to web request lifetimes where streaming or long-running operations are expected.

Failure modes: MCP specification drift, transport incompatibility, authentication or authorization bypass, unvalidated tool inputs, unbounded tool outputs, dependency rot, unpatched vulnerabilities, and silent breakage with newer AI clients. Tool execution must be permissioned and observable; LLM-driven tool calls should not be treated as trusted user actions.

Ramp-up: PHP developers will need MCP concepts, JSON Schema, transport behavior, AI client integration, and tool-security practices. The TPM will need to manage scope tightly, set expectations that the package is not a supported platform, and define a clear exit path if the fork becomes a maintenance burden.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route