mcp-fuzzer


Namemcp-fuzzer JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryMCP server fuzzer client and utilities
upload_time2025-08-03 10:50:05
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License Copyright (c) 2025 Prince Roshan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords mcp fuzzing testing json-rpc
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MCP Fuzzer

A CLI tool for fuzzing MCP server tools using JSON-RPC 2.0, with pretty output using [rich](https://github.com/Textualize/rich).

## Features
- Discovers available tools from an MCP server endpoint
- Fuzzes each tool with random/edge-case arguments using Hypothesis
- Reports results and exceptions in a rich terminal table

## Installation


```bash
pip install -e .
```

## Usage

You can run the fuzzer as a CLI tool after install:

```bash
mcp-fuzzer-client --url http://localhost:8000/mcp/ --runs 10
```

Or directly with Python:

```bash
python -m mcp_fuzzer_client --url http://localhost:8000/mcp/ --runs 10
```

- `--url`: URL of the MCP server's JSON-RPC endpoint
- `--runs`: Number of fuzzing runs per tool (default: 10)

## Output

Results are shown in a colorized table, including the number of exceptions and an example error if any.

---

**Project dependencies are managed via `pyproject.toml`.**

Test result of  fuzz testing of https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/servers/simple-streamablehttp-stateless

![fuzzer](./fuzzer.png)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mcp-fuzzer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "mcp, fuzzing, testing, json-rpc",
    "author": null,
    "author_email": "Your Name <your.email@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/ef/3e/78e25bc59db7110d5e96ba1b2a60e33e95fbec1c94b577ce2c884f7e7e53/mcp_fuzzer-0.1.0.tar.gz",
    "platform": null,
    "description": "# MCP Fuzzer\n\nA CLI tool for fuzzing MCP server tools using JSON-RPC 2.0, with pretty output using [rich](https://github.com/Textualize/rich).\n\n## Features\n- Discovers available tools from an MCP server endpoint\n- Fuzzes each tool with random/edge-case arguments using Hypothesis\n- Reports results and exceptions in a rich terminal table\n\n## Installation\n\n\n```bash\npip install -e .\n```\n\n## Usage\n\nYou can run the fuzzer as a CLI tool after install:\n\n```bash\nmcp-fuzzer-client --url http://localhost:8000/mcp/ --runs 10\n```\n\nOr directly with Python:\n\n```bash\npython -m mcp_fuzzer_client --url http://localhost:8000/mcp/ --runs 10\n```\n\n- `--url`: URL of the MCP server's JSON-RPC endpoint\n- `--runs`: Number of fuzzing runs per tool (default: 10)\n\n## Output\n\nResults are shown in a colorized table, including the number of exceptions and an example error if any.\n\n---\n\n**Project dependencies are managed via `pyproject.toml`.**\n\nTest result of  fuzz testing of https://github.com/modelcontextprotocol/python-sdk/tree/main/examples/servers/simple-streamablehttp-stateless\n\n![fuzzer](./fuzzer.png)\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2025 Prince Roshan\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.\n        ",
    "summary": "MCP server fuzzer client and utilities",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/agent-hellboy/mcp-server-fuzzer",
        "Issues": "https://github.com/agent-hellboy/mcp-server-fuzzer/issues",
        "Repository": "https://github.com/agent-hellboy/mcp-server-fuzzer"
    },
    "split_keywords": [
        "mcp",
        " fuzzing",
        " testing",
        " json-rpc"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ad4c80dc8bcb64605b9ca38226bfd4e4ffa3cb469f39b45918dc39b67f9ddf9d",
                "md5": "87c397c23ce6800f4e71c451b8fe6d6e",
                "sha256": "6f85d76b0cbe335cbb6e2067a3ab76b7a813d1b2fe0ca5df1ffba3a0977613a2"
            },
            "downloads": -1,
            "filename": "mcp_fuzzer-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "87c397c23ce6800f4e71c451b8fe6d6e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5956,
            "upload_time": "2025-08-03T10:50:04",
            "upload_time_iso_8601": "2025-08-03T10:50:04.077778Z",
            "url": "https://files.pythonhosted.org/packages/ad/4c/80dc8bcb64605b9ca38226bfd4e4ffa3cb469f39b45918dc39b67f9ddf9d/mcp_fuzzer-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ef3e78e25bc59db7110d5e96ba1b2a60e33e95fbec1c94b577ce2c884f7e7e53",
                "md5": "4dee297784809ccc240c9da2b1f1a6b0",
                "sha256": "05ffcdfdd53955cf9b7cbcd7319d62128017602b943872bd5b11f3a430baea97"
            },
            "downloads": -1,
            "filename": "mcp_fuzzer-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4dee297784809ccc240c9da2b1f1a6b0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4542,
            "upload_time": "2025-08-03T10:50:05",
            "upload_time_iso_8601": "2025-08-03T10:50:05.273807Z",
            "url": "https://files.pythonhosted.org/packages/ef/3e/78e25bc59db7110d5e96ba1b2a60e33e95fbec1c94b577ce2c884f7e7e53/mcp_fuzzer-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-03 10:50:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "agent-hellboy",
    "github_project": "mcp-server-fuzzer",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "mcp-fuzzer"
}
        
Elapsed time: 1.21689s