Skip to main content
Glama

Mock MCP Server

Mock MCP Server

PyPI - Version

A mock MCP server for testing MCP client implementations and development workflows.

Support tools, prompts and resources.

Usage

Full Usage

Usage: mock-mcp-server [OPTIONS] Mock MCP Server for testing. ╭─ Options ───────────────────────────────────────────────────────────────────────────────────╮ │ --transport [stdio|http|sse|streamable-http] Transport type [default: stdio] │ │ --host TEXT Host to bind to [default: 127.0.0.1] │ │ --port INTEGER Port to bind to [default: 8000] │ │ --version Show version and exit │ │ --help Show this message and exit. │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯

Stdio

Add to your MCP client configuration:

Install MCP Server

{ "mcpServers": { "mock": { "command": "uvx", "args": ["mock-mcp-server"] } } }

Streamable HTTP

Start server first:

uvx mock-mcp-server --transport http --host 127.0.0.1 --port 8000

Then configure your MCP client:

Install MCP Server

{ "mcpServers": { "mock": { "url": "http://127.0.0.1:8000" } } }

SSE

Start server first:

uvx mock-mcp-server --transport sse --host 127.0.0.1 --port 8000

Then configure your MCP client:

Install MCP Server

{ "mcpServers": { "mock": { "url": "http://127.0.0.1:8000" } } }

CHANGELOG

Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A mock MCP server for testing MCP client implementations and development workflows. Supports tools, prompts, and resources across multiple transport protocols (stdio, HTTP, SSE).

  1. Usage
    1. Full Usage
    2. Stdio
    3. Streamable HTTP
    4. SSE
  2. CHANGELOG

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/DiscreteTom/mock-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server