Download the PHP package nexusphp/mcp-sdk without Composer

On this page you can find all versions of the php package nexusphp/mcp-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mcp-sdk

Nexus MCP SDK

PHP Latest Stable Version Unit Tests Static analysis Code style Mutation score

[!IMPORTANT] Pre-v1.0.0. Through 0.x the project ships the single umbrella package nexusphp/mcp-sdk, and minor releases may carry breaking changes until 1.0.0. The stdio transport is implemented. Streamable HTTP lands with the 2026-07-28 migration.

A PHP SDK for the Model Context Protocol (MCP), tracking spec revision 2026-07-28. It provides both sides of an MCP session: a server for exposing tools, resources, and prompts, and a client for connecting to MCP servers over a transport.

This SDK is architected independently of the official PHP MCP SDK. See ROADMAP.md for direction and the path to the 2026-07-28 spec migration.

Requirements

Installation

The SDK runs on AMPHP and Revolt. Its synchronous-looking API is driven by fibers under the hood.

Quickstart

A minimal stdio server exposing one tool:

Run it through MCP Inspector:

See Getting started for the client side and a full walkthrough.

Documentation

Development

See CONTRIBUTING.md for the full workflow.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md and the SECURITY.md.

License

Released under the MIT License.


All versions of mcp-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
amphp/amp Version ^3.1
amphp/byte-stream Version ^2.1
amphp/process Version ^2.0
nexusphp/assert Version ^1.1
opis/json-schema Version ^2.6
phpstan/phpdoc-parser Version ^2.3
psr/log Version ^3.0
revolt/event-loop Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nexusphp/mcp-sdk contains the following files

Loading the files please wait ...