Skip to main content

A mock MCP server for testing

Project description

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

uvx mock-mcp-server --help
 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 Add to Kiro

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

Streamable HTTP

Start server first:

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

Then configure your MCP client:

Install MCP Server Add to Kiro

{
  "mcpServers": {
    "mock-streamable-http": {
      "url": "http://127.0.0.1:7788/mcp"
    }
  }
}

SSE

Start server first:

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

Then configure your MCP client:

Install MCP Server Add to Kiro

{
  "mcpServers": {
    "mock-sse": {
      "url": "http://127.0.0.1:7789/sse"
    }
  }
}

CHANGELOG

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mock_mcp_server-0.1.1.tar.gz (78.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mock_mcp_server-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mock_mcp_server-0.1.1.tar.gz.

File metadata

  • Download URL: mock_mcp_server-0.1.1.tar.gz
  • Upload date:
  • Size: 78.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mock_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 699a957d3db742e41344ea2da4dda81564a10964c7eba57a381484b4ed197892
MD5 e86fb5fbc1cd37e7f3fcd8ba58b6272b
BLAKE2b-256 57e37abddf4de4af16574ccb36d3f4c513e2ee491a06b28819b7c023f9da31c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mock_mcp_server-0.1.1.tar.gz:

Publisher: publish.yml on DiscreteTom/mock-mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mock_mcp_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mock_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93b839ab6d1c070ac70fd34da6d6fa4546c938a5783f18697b1a4ce70acf4baf
MD5 c3b4c768a946eacbdbb9fecd683bc479
BLAKE2b-256 87f6e89405ccd618919c59ecc403adc395cc6c3c73f10554b12dd2f9ed7c3f72

See more details on using hashes here.

Provenance

The following attestation bundles were made for mock_mcp_server-0.1.1-py3-none-any.whl:

Publisher: publish.yml on DiscreteTom/mock-mcp-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page