This MCP server provides timestamp-based UUIDs (v7) whenever called by an LLM like Claude. It's a simple tool that generates chronologically sortable unique identifiers without requiring any input parameters.
To install the UUID MCP Provider:
# Install dependencies
npm install
# Build the project
npm run build
You can run the server directly using:
npm start
To integrate with Claude Desktop, you need to add the server configuration to your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the following to your configuration file:
{
"mcpServers": {
"uuid-provider": {
"command": "node",
"args": ["/absolute/path/to/uuid-mcp/build/index.js"]
}
}
}
Important: Replace /absolute/path/to/uuid-mcp/build/index.js
with the absolute path to your built index.js file.
After updating the configuration, restart Claude Desktop for the changes to take effect. The UUID generation tool will then be available in your Claude interface.
When called, the tool returns a UUID v7 string that looks like:
018e94d2-279b-7bd3-9289-80d1e6619670
The first part of the UUID contains the timestamp, making these identifiers chronologically sortable while still maintaining the standard UUID format.
The server provides a single tool called generateUuid
that requires no input parameters. It uses the standard uuid
package to generate UUID v7 identifiers, which incorporate:
This makes it ideal for applications where both uniqueness and time ordering are important.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.