Search by

nexusphp / mcp-server

PHP SDK for the MCP specification - server component.

Maintainers

Package info

github.com/NexusPHP/mcp-server

Issues

Documentation

pkg:composer/nexusphp/mcp-server

Transparency log

Fund package maintenance!

paulbalandan

Statistics

Installs: 2

Dependents: 1

Suggesters: 0

Stars: 0

v1.0.0 2026-09-04 08:47 UTC

This package is auto-updated.

Last update: 2026-09-04 13:28:40 UTC


README

PHP Latest Stable Version License

The server half of the Nexus MCP SDK: a fluent ServerBuilder for registering tools, prompts, resources, and completions, a Server that runs them over stdio or Streamable HTTP, and the resource-server side of OAuth.

Important

This repository is a read-only subtree split of NexusPHP/mcp. Open issues and pull requests there. Anything opened here is closed automatically with the same pointer.

Installation

composer require nexusphp/mcp-server

This pulls in nexusphp/mcp-core. The umbrella nexusphp/mcp ships the client and the official extensions alongside it.

What is inside

Namespace Contents
Nexus\Mcp\Server ServerBuilder, Server, ServerContext, and the cursor paginator
Nexus\Mcp\Server\Tool, Prompt, Resource, Completion The per-feature stores and the consumer-facing executor and reader interfaces
Nexus\Mcp\Server\Attribute and Nexus\Mcp\Server\Discovery #[AsTool] and friends, and the scanner that turns them into definitions
Nexus\Mcp\Server\Handler and Nexus\Mcp\Server\Dispatch The built-in request and notification handlers and the dispatch kernel
Nexus\Mcp\Server\Transport StdioServerTransport and the PSR-15 StreamableHttpServerTransport
Nexus\Mcp\Server\Auth Bearer authentication middleware, token validators, and the protected-resource metadata endpoint
Nexus\Mcp\Server\Subscription The subscriptions/listen stream store
Nexus\Mcp\Server\Extension and Nexus\Mcp\Server\Validation The server-side extension gate and the JSON Schema validator

Documentation

License

Released under the MIT License.