apex-mcp supports three MCP transport modes, selected via theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TechFernandesLTDA/apex-mcp/llms.txt
Use this file to discover all available pages before exploring further.
--transport CLI flag or the MCP_TRANSPORT environment variable. Each mode targets a different deployment scenario: local AI clients that manage the server process directly, remote HTTP-based clients that connect to a running server, and legacy clients that require Server-Sent Events. If no transport is specified, apex-mcp defaults to stdio.
stdio (Default)
Thestdio transport launches apex-mcp as a subprocess and communicates over standard input/output. This is the most common mode for local development because AI clients like Claude Code and Cursor manage the server lifecycle automatically — no separate server process to start or stop.
Streamable HTTP
Thestreamable-http transport starts a persistent HTTP server that MCP clients connect to over the network. The server listens at http://127.0.0.1:8000/mcp by default.
SSE (Server-Sent Events)
Thesse transport starts an HTTP server using the Server-Sent Events protocol. Like streamable HTTP, it binds to 127.0.0.1:8000 by default, with the endpoint path at /sse. The example below overrides the port to 9000:
CLI Flags Reference
All HTTP transport behavior can be tuned with CLI flags:| Flag | Default | Description |
|---|---|---|
--transport | stdio | Transport mode: stdio, streamable-http, or sse |
--host | 127.0.0.1 | Host address to bind for HTTP transports |
--port | 8000 | Port to bind for HTTP transports |
--path | /mcp (http) or /sse | URL path for the MCP endpoint |
Environment Variable Equivalents
Every CLI flag has a corresponding environment variable. CLI flags take precedence over environment variables when both are set:| Environment Variable | Equivalent CLI Flag | Default |
|---|---|---|
MCP_TRANSPORT | --transport | stdio |
MCP_HOST | --host | 127.0.0.1 |
MCP_PORT | --port | 8000 |
MCP_PATH | --path | /mcp (http) or /sse |
No built-in authentication: apex-mcp’s HTTP transport has no authentication layer. The server binds to
127.0.0.1 by default, which prevents external access. If you need to expose apex-mcp over a network, place it behind a reverse proxy (nginx, Caddy, etc.) that handles TLS termination and authentication before forwarding requests to apex-mcp.