Skip to main content

A simple MCP server that provides a tool to generate UUIDs

Project description

UUID MCP Tool

A simple Model Context Protocol (MCP) server that provides a tool to generate UUIDs.

Installation

Install from PyPI (Recommended)

pip install uuid-mcp

Install from source

  1. Clone or download this repository
  2. Install the package:
pip install .

Or install in development mode:

pip install -e .

Install from local directory

If you have the package locally:

pip install /path/to/uuid-mcp

Usage

After installation, you can run the MCP server using the uuid-mcp command:

uuid-mcp

The server will communicate via stdio and expose a generate_uuid tool that generates a random UUID (version 4) when called.

Tool

  • generate_uuid: Generates a random UUID (version 4). Takes no parameters and returns a UUID string.

Adding to Cursor

To use this MCP tool in Cursor, add it to your Cursor MCP configuration:

  1. Open Cursor Settings (Cmd/Ctrl + ,)

  2. Navigate to "Features" → "Model Context Protocol" or search for "MCP"

  3. Click "Edit Config" or open the MCP configuration file (typically located at ~/.cursor/mcp.json or in Cursor's settings)

  4. Add the following configuration:

{
  "mcpServers": {
    "uuid-generator": {
      "command": "uuid-mcp"
    }
  }
}

If uuid-mcp is not in your PATH, you can use the full path to the executable. After pip installation, you can find it with:

which uuid-mcp

Or use Python's -m flag:

{
  "mcpServers": {
    "uuid-generator": {
      "command": "python",
      "args": ["-m", "uuid_mcp.server"]
    }
  }
}
  1. Restart Cursor for the changes to take effect.

Once configured, you can use the generate_uuid tool in Cursor's AI chat interface.

Publishing

For package maintainers: See PUBLISHING.md for instructions on how to publish this package to PyPI.

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

uuid_mcp-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

uuid_mcp-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file uuid_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: uuid_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for uuid_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19e81520d7524ec8502770cc6d42bba0ce2ba3514f50226a972f951bd6eab119
MD5 ae7f88bd71f3dab31e11be751fe1ce66
BLAKE2b-256 70d2610c789505b125570540594cd1aad34243e4c6a13c356f0c542ba41424ac

See more details on using hashes here.

File details

Details for the file uuid_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: uuid_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for uuid_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a8b73e578f89177e8c812dc122ef64b1e1ee0da4014f2f261c2b0bf7bd13587
MD5 11f5fd04c579b3f3b57874f2d9d7858f
BLAKE2b-256 cdd591f9c1fa21d55712b6f03607952313a9c7b27880152ebff5e55f2f549449

See more details on using hashes here.

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