Weave Code
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 Client Laravel Laravel Package

redberry/mcp-client-laravel

Laravel client for the Model Context Protocol (MCP). Supports JSON-RPC 2.0 over Streamable HTTP (including SSE) and STDIO. Configure multiple servers and use a single facade to list/call tools and read resources, with per-request content negotiation.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • AI/ML Agent Integration Roadmap: Enables seamless integration with Model Context Protocol (MCP)-compatible AI agents (e.g., Anthropic, custom tools) directly within Laravel applications. Supports agentic workflows (e.g., GitHub Copilot-like tooling, LLM-powered automation) without vendor lock-in.
  • Build vs. Buy: Buy—avoids reinventing JSON-RPC/HTTP-SSE transport logic for MCP. Reduces dev time by 60%+ for teams needing agent connectivity.
  • Use Cases:
    • AI-Powered Tooling: Call external AI tools (e.g., code generation, data analysis) via MCP servers (e.g., Anthropic, local agents).
    • Hybrid Workflows: Combine Laravel business logic with AI agents (e.g., auto-generating API docs, processing unstructured data).
    • Local/Remote Agents: Supports both local subprocesses (STDIO) and remote HTTP servers (e.g., cloud-based AI APIs).
    • Streaming Responses: Handle real-time AI outputs (e.g., progress updates, chunked results) via SSE.
  • Scalability: Designed for high-throughput scenarios (e.g., queue workers, Octane) with configurable timeouts and session recovery.
  • Extensibility: Custom transports allow integration with proprietary MCP servers or future protocol versions.

When to Consider This Package

Adopt If:

  • Your team is building AI/agentic features in Laravel and needs MCP compatibility (e.g., Anthropic, custom tools).
  • You require low-latency, bidirectional communication with AI agents (e.g., tool calls, resource reads).
  • You need streaming responses (SSE) for long-running AI operations (e.g., large file processing, multi-step workflows).
  • You’re evaluating local vs. remote agents and want a unified client for both (STDIO/HTTP).
  • Your roadmap includes agent orchestration (e.g., chaining tools, error handling, session management).

Look Elsewhere If:

  • You’re not using MCP: If your AI provider uses a different protocol (e.g., REST, gRPC), this package won’t fit.
  • You need offline-first support: MCP requires persistent server connections (no built-in caching).
  • Your use case is simple REST calls: For basic API interactions, Laravel’s HTTP client or Guzzle suffice.
  • You’re constrained by PHP 8.2 or Laravel <10: Package requires PHP 8.3+ and Laravel 10+.
  • You need multi-tenancy isolation: The package doesn’t natively support tenant-aware MCP sessions (would require custom middleware).

How to Pitch It (Stakeholders)

For Executives:

*"This package lets us plug into the AI agent ecosystem—like GitHub Copilot for our domain—without building custom integrations. It’s a turnkey solution for:

  • Accelerating AI adoption in Laravel (e.g., auto-generating code/docs, processing unstructured data).
  • Reducing dev time by 60%+ for agent connectivity (no reinventing JSON-RPC/SSE).
  • Scaling agent workflows securely (supports local/remote agents, streaming responses). Think of it as Laravel’s bridge to the next generation of AI tools—future-proof, extensible, and ready for our roadmap."*

Ask: "Should we prioritize this for [AI initiative name] to unlock [specific business outcome]?"


For Engineering:

*"This is a batteries-included MCP client for Laravel that handles:

  1. Protocol Complexity: JSON-RPC 2.0, Streamable HTTP (SSE), and STDIO transports—all abstracted behind a simple facade.
  2. Reliability: Automatic session recovery, timeouts, and retries for flaky connections.
  3. Flexibility:
    • Call any MCP-compatible tool (e.g., Anthropic, custom agents) via client->callTool('tool_name', args).
    • Stream real-time updates with callbacks (e.g., progress logs, chunked results).
    • Supports local subprocesses (STDIO) or remote HTTP servers.
  4. Performance: Lazy-loaded transports, connection reuse, and Octane/queue-worker friendly.
  5. Extensibility: Add custom transports if needed (e.g., WebSocket, gRPC).

Tradeoffs:

  • Not a silver bullet: Requires MCP-compatible servers (but works with Anthropic, local agents, etc.).
  • Laravel 10+ only: Uses newer features (e.g., singleton binding, PHP 8.3+).

Proposal:

  • Short-term: Use for [specific feature] (e.g., AI-powered docs generation).
  • Long-term: Foundation for our agent orchestration platform.
  • Effort: ~1 day to integrate vs. ~2 weeks to build from scratch.

Ask: "Can we allocate time to prototype this for [use case]?""*

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.
codraw/entity-migrator
codraw/doctrine-extra
codraw/aws-tool-kit
codraw/validator
codraw/workflow
codraw/open-api
codraw/cron-job
codraw/process
codraw/log
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony