Configuration
Configure the Tokencraft MCP server to use it with Claude Desktop or other MCP clients.Claude Desktop Configuration
1. Locate Configuration File
The Claude Desktop configuration file location varies by operating system:2. Edit Configuration
Open the file and add the Tokencraft MCP server:claude_desktop_config.json
Replace
dtk_your_token_here with your actual API token from app.tokencraft.dev/api-settings3. Restart Claude Desktop
Close and reopen Claude Desktop for changes to take effect.4. Verify Setup
In Claude, type:Configuration Options
Basic Configuration
Minimal setup:Custom API URL
For self-hosted or development environments:Using Global Install
If you installed globally:Multiple Accounts
Configure multiple Tokencraft accounts:Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
TOKENCRAFT_API_TOKEN | Yes | - | Your API token |
TOKENCRAFT_API_URL | No | https://app.tokencraft.dev/api/v1 | API base URL |
Security Best Practices
1. Token Security
✅ Good:2. Separate Tokens
Use different tokens for different purposes:- Development:
dtk_dev_... - Production:
dtk_prod_... - Claude:
dtk_claude_...
3. Token Permissions
Create read-only tokens when possible (coming soon).Verifying Configuration
Test 1: Basic Connection
Test 2: List Workspaces
Test 3: Export Tokens
Troubleshooting
Server Not Starting
Error: MCP server failed to start Solutions:- Verify Node.js is installed:
node --version - Check token is valid
- Test manually:
npx @tokencraft/mcp-server
Authentication Failed
Error: 401 Unauthorized Solutions:- Verify API token is correct
- Check token hasn’t been revoked
- Create a new token if needed
Command Not Found
Error:npx: command not found
Solutions:
- Install Node.js
- Use full path:
/usr/local/bin/npx - Use global install method
Claude Doesn’t See Server
Solutions:- Restart Claude Desktop completely (Quit, not just close window)
- Check JSON syntax in config file
- Verify file location is correct
- Check logs:
Other MCP Clients
Cline (VS Code)
Configure in VS Code settings:settings.json
Custom MCP Client
For custom implementations:Configuration Examples
Example 1: Simple Setup
Example 2: With Other MCP Servers
Example 3: Development Setup
Next Steps
Basic Usage
Start using the MCP server
Available Tools
Explore MCP tools
Resources
Access resources
Examples
See example workflows
Support
If you’re having trouble:- Check the troubleshooting section
- Review example configurations
- Test the REST API directly
- Contact support with your configuration (remove token first!)