mock-mcp-server


Namemock-mcp-server JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryA mock MCP server for testing
upload_time2025-11-03 08:39:58
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseMIT
keywords mcp mock server testing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Mock MCP Server

[![PyPI - Version](https://img.shields.io/pypi/v/mock-mcp-server)](https://pypi.org/project/mock-mcp-server/)

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

Support tools, prompts and resources.

## Usage

### Full Usage

<details>

<summary><code>uvx mock-mcp-server --help</code></summary>

```sh
 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.            │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯
```

</details>

### Stdio

Add to your MCP client configuration:

[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=mock-stdio&config=eyJjb21tYW5kIjoidXZ4IG1vY2stbWNwLXNlcnZlciJ9)
[![Add to Kiro](https://kiro.dev/images/add-to-kiro.svg)](kiro://kiro.mcp/add?name=mock-stdio&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mock-mcp-server%22%5D%7D)

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

### Streamable HTTP

Start server first:

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

Then configure your MCP client:

[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=mock-streamable-http&config=eyJ1cmwiOiJodHRwOi8vMTI3LjAuMC4xOjc3ODgvbWNwIn0%3D)
[![Add to Kiro](https://kiro.dev/images/add-to-kiro.svg)](kiro://kiro.mcp/add?name=mock-streamable-http&config=%7B%22url%22%3A%22http%3A%2F%2F127.0.0.1%3A7788%2Fmcp%22%7D)

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

### SSE

Start server first:

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

Then configure your MCP client:

[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=mock-sse&config=eyJ1cmwiOiJodHRwOi8vMTI3LjAuMC4xOjc3ODkvc3NlIn0%3D)
[![Add to Kiro](https://kiro.dev/images/add-to-kiro.svg)](kiro://kiro.mcp/add?name=mock-sse&config=%7B%22url%22%3A%22http%3A%2F%2F127.0.0.1%3A7789%2Fsse%22%7D)

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

## [CHANGELOG](./CHANGELOG.md)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mock-mcp-server",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "mcp, mock, server, testing",
    "author": null,
    "author_email": "DiscreteTom <discrete_tom@outlook.com>",
    "download_url": "https://files.pythonhosted.org/packages/57/e3/7abddf4de4af16574ccb36d3f4c513e2ee491a06b28819b7c023f9da31c3/mock_mcp_server-0.1.1.tar.gz",
    "platform": null,
    "description": "# Mock MCP Server\n\n[![PyPI - Version](https://img.shields.io/pypi/v/mock-mcp-server)](https://pypi.org/project/mock-mcp-server/)\n\nA mock MCP server for testing MCP client implementations and development workflows.\n\nSupport tools, prompts and resources.\n\n## Usage\n\n### Full Usage\n\n<details>\n\n<summary><code>uvx mock-mcp-server --help</code></summary>\n\n```sh\n Usage: mock-mcp-server [OPTIONS]\n\n Mock MCP Server for testing.\n\n\u256d\u2500 Options \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n\u2502 --transport        [stdio|http|sse|streamable-http]  Transport type [default: stdio]        \u2502\n\u2502 --host             TEXT                              Host to bind to [default: 127.0.0.1]   \u2502\n\u2502 --port             INTEGER                           Port to bind to [default: 8000]        \u2502\n\u2502 --version                                            Show version and exit                  \u2502\n\u2502 --help                                               Show this message and exit.            \u2502\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n```\n\n</details>\n\n### Stdio\n\nAdd to your MCP client configuration:\n\n[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=mock-stdio&config=eyJjb21tYW5kIjoidXZ4IG1vY2stbWNwLXNlcnZlciJ9)\n[![Add to Kiro](https://kiro.dev/images/add-to-kiro.svg)](kiro://kiro.mcp/add?name=mock-stdio&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22mock-mcp-server%22%5D%7D)\n\n```json\n{\n  \"mcpServers\": {\n    \"mock-stdio\": {\n      \"command\": \"uvx\",\n      \"args\": [\"mock-mcp-server\"]\n    }\n  }\n}\n```\n\n### Streamable HTTP\n\nStart server first:\n\n```sh\nuvx mock-mcp-server --transport http --host 127.0.0.1 --port 7788\n```\n\nThen configure your MCP client:\n\n[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=mock-streamable-http&config=eyJ1cmwiOiJodHRwOi8vMTI3LjAuMC4xOjc3ODgvbWNwIn0%3D)\n[![Add to Kiro](https://kiro.dev/images/add-to-kiro.svg)](kiro://kiro.mcp/add?name=mock-streamable-http&config=%7B%22url%22%3A%22http%3A%2F%2F127.0.0.1%3A7788%2Fmcp%22%7D)\n\n```json\n{\n  \"mcpServers\": {\n    \"mock-streamable-http\": {\n      \"url\": \"http://127.0.0.1:7788/mcp\"\n    }\n  }\n}\n```\n\n### SSE\n\nStart server first:\n\n```sh\nuvx mock-mcp-server --transport sse --host 127.0.0.1 --port 7789\n```\n\nThen configure your MCP client:\n\n[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=mock-sse&config=eyJ1cmwiOiJodHRwOi8vMTI3LjAuMC4xOjc3ODkvc3NlIn0%3D)\n[![Add to Kiro](https://kiro.dev/images/add-to-kiro.svg)](kiro://kiro.mcp/add?name=mock-sse&config=%7B%22url%22%3A%22http%3A%2F%2F127.0.0.1%3A7789%2Fsse%22%7D)\n\n```json\n{\n  \"mcpServers\": {\n    \"mock-sse\": {\n      \"url\": \"http://127.0.0.1:7789/sse\"\n    }\n  }\n}\n```\n\n## [CHANGELOG](./CHANGELOG.md)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A mock MCP server for testing",
    "version": "0.1.1",
    "project_urls": null,
    "split_keywords": [
        "mcp",
        " mock",
        " server",
        " testing"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "87f6e89405ccd618919c59ecc403adc395cc6c3c73f10554b12dd2f9ed7c3f72",
                "md5": "c3b4c768a946eacbdbb9fecd683bc479",
                "sha256": "93b839ab6d1c070ac70fd34da6d6fa4546c938a5783f18697b1a4ce70acf4baf"
            },
            "downloads": -1,
            "filename": "mock_mcp_server-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c3b4c768a946eacbdbb9fecd683bc479",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 4121,
            "upload_time": "2025-11-03T08:39:56",
            "upload_time_iso_8601": "2025-11-03T08:39:56.755452Z",
            "url": "https://files.pythonhosted.org/packages/87/f6/e89405ccd618919c59ecc403adc395cc6c3c73f10554b12dd2f9ed7c3f72/mock_mcp_server-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "57e37abddf4de4af16574ccb36d3f4c513e2ee491a06b28819b7c023f9da31c3",
                "md5": "e86fb5fbc1cd37e7f3fcd8ba58b6272b",
                "sha256": "699a957d3db742e41344ea2da4dda81564a10964c7eba57a381484b4ed197892"
            },
            "downloads": -1,
            "filename": "mock_mcp_server-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e86fb5fbc1cd37e7f3fcd8ba58b6272b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 78583,
            "upload_time": "2025-11-03T08:39:58",
            "upload_time_iso_8601": "2025-11-03T08:39:58.196419Z",
            "url": "https://files.pythonhosted.org/packages/57/e3/7abddf4de4af16574ccb36d3f4c513e2ee491a06b28819b7c023f9da31c3/mock_mcp_server-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-11-03 08:39:58",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mock-mcp-server"
}
        
Elapsed time: 2.29251s