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
- Clone or download this repository
- 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:
-
Open Cursor Settings (Cmd/Ctrl + ,)
-
Navigate to "Features" → "Model Context Protocol" or search for "MCP"
-
Click "Edit Config" or open the MCP configuration file (typically located at
~/.cursor/mcp.jsonor in Cursor's settings) -
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"]
}
}
}
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19e81520d7524ec8502770cc6d42bba0ce2ba3514f50226a972f951bd6eab119
|
|
| MD5 |
ae7f88bd71f3dab31e11be751fe1ce66
|
|
| BLAKE2b-256 |
70d2610c789505b125570540594cd1aad34243e4c6a13c356f0c542ba41424ac
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a8b73e578f89177e8c812dc122ef64b1e1ee0da4014f2f261c2b0bf7bd13587
|
|
| MD5 |
11f5fd04c579b3f3b57874f2d9d7858f
|
|
| BLAKE2b-256 |
cdd591f9c1fa21d55712b6f03607952313a9c7b27880152ebff5e55f2f549449
|