Skip to main content

Package

The ChainStream MCP server is distributed as an npm package:
@chainstream-io/mcp

Installation

Install the package globally to make the chainstream-mcp binary available system-wide:
npm install -g @chainstream-io/mcp
After installation, run the server directly:
chainstream-mcp

Binary

The package exposes a single binary:
chainstream-mcp
This binary starts the MCP server using stdio transport by default — the standard mode for connecting to Claude Desktop, Cursor, and other MCP clients. See Stdio Transport for client-specific configuration.

Environment Variables

VariableRequiredDefaultDescription
CHAINSTREAM_API_KEYYesYour ChainStream API key
CHAINSTREAM_API_URLNohttps://api.chainstream.ioChainStream API base URL
Set the API key as an environment variable or pass --api-key on the command line:
export CHAINSTREAM_API_KEY=your-key
chainstream-mcp

# Or pass directly
chainstream-mcp --api-key your-key
Keep your API key secret. Never commit it to version control.

Verify Installation

After installing, verify the package is available:
npx @chainstream-io/mcp --help
You should see the available options:
Options:
  --transport  Transport type: stdio for local CLI   [choices: "stdio"] [default: "stdio"]
  --api-key    ChainStream API key                   [string]
  --help       Show help                             [boolean]
  --version    Show version number                   [boolean]

Next Steps

Stdio Transport

Connect to Claude Desktop, Claude Code, or Cursor via stdio.

Tools Reference

Explore all 17 MCP tools available through the server.