Skip to main content

Installation

Install the Tokencraft MCP server to use your design tokens with Claude Desktop and other MCP clients.

Prerequisites

  • Node.js 18 or higher
  • npm or npx
  • A Tokencraft API token
  • Claude Desktop (for Claude integration)

Installation Methods

Use without installation:
npx @tokencraft/mcp-server
This method is recommended for Claude Desktop configuration as it always uses the latest version.

Method 2: Global Install

Install globally:
npm install -g @tokencraft/mcp-server
Then run:
tokencraft-mcp

Method 3: Local Project

Add to your project:
npm install @tokencraft/mcp-server

Get Your API Token

  1. Visit app.tokencraft.dev/api-settings
  2. Click “New Token”
  3. Give it a name (e.g., “Claude Desktop”)
  4. Copy the token immediately
  5. Store it securely
The API token is shown only once. Store it in a secure location.

Verify Installation

Test the server:
# If using npx
npx @tokencraft/mcp-server --version

# If globally installed
tokencraft-mcp --version

Environment Variables

The server uses these environment variables:
VariableRequiredDescription
TOKENCRAFT_API_TOKENYesYour API token
TOKENCRAFT_API_URLNoAPI base URL (default: https://app.tokencraft.dev/api/v1)

Configuration File

Create a .env file for local testing:
TOKENCRAFT_API_TOKEN=dtk_your_token_here
TOKENCRAFT_API_URL=https://app.tokencraft.dev/api/v1
For Claude Desktop, you’ll configure these in the Claude config file instead.

Next Steps

Troubleshooting

Command Not Found

Error: tokencraft-mcp: command not found Solution: Use npx instead or ensure global install path is in your PATH:
npm install -g @tokencraft/mcp-server

Node Version

Error: Requires Node.js 18 or higher Solution: Update Node.js:
# Using nvm
nvm install 18
nvm use 18

Permission Errors

Error: EACCES permission denied Solution: Use npx or fix npm permissions:
# Option 1: Use npx
npx @tokencraft/mcp-server

# Option 2: Fix permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH

Update

NPX

Always uses the latest version automatically.

Global Install

Update to the latest version:
npm update -g @tokencraft/mcp-server

Uninstall

npm uninstall -g @tokencraft/mcp-server

System Requirements

RequirementMinimumRecommended
Node.js18.0.0Latest LTS
RAM512 MB1 GB
Disk Space50 MB100 MB
NetworkRequiredHigh-speed

Security Notes

  1. API Token Storage
    • Store in environment variables
    • Never commit to version control
    • Rotate regularly
  2. Network Access
    • Requires internet connection
    • Communicates with app.tokencraft.dev
    • Uses HTTPS only
  3. Rate Limits
    • Same as REST API (100 req/min)
    • Shared with other API usage

Platform Support

PlatformStatus
macOS✅ Supported
Windows✅ Supported
Linux✅ Supported
Claude Desktop✅ Full support
Cline✅ Compatible
Custom MCP clients✅ Standard MCP

Need Help?

Next: Configure Claude Desktop

Once installed, configure Claude Desktop to use the Tokencraft MCP server.