An MCP (Model Context Protocol) server that provides tools for interacting with Tlon agents.
compressed_recording.mp4
- send-dm tool: Send direct messages to other users by ship ID or nickname
- read-dm-history tool: Retrieve recent messages from a direct-message channel
- list-contacts tool: Get contacts with their nicknames and ship IDs
- Natural language support: Reference people by their nicknames ("Send a message to Brian")
- Node.js (v16+)
- A running Urbit ship
- Clone the repository
- Navigate to the project directory
- Install dependencies:
npm installImportant: Always run npm install manually in the terminal before using with Claude Desktop or any other MCP client. This prevents installation output from interfering with the MCP protocol.
Configure the server using environment variables:
| Variable | Description | Default |
|---|---|---|
URBIT_SHIP |
Your Urbit ship name (without ~) | zod |
URBIT_CODE |
Your Urbit +code | lidlut-tabwed-pillex-ridrup |
URBIT_HOST |
Urbit host | localhost |
URBIT_PORT |
Urbit port | 8080 |
PORT |
MCP server port (HTTP mode only) | 3001 |
MCP_TRANSPORT |
Transport type (http or stdio) | stdio |
# Start with default stdio transport
npm start
# Start with HTTP transport
export MCP_TRANSPORT=http && npm start
# Development mode with auto-reload
npm run devThe default stdio mode works seamlessly with Claude Desktop. Create or edit the Claude Desktop configuration file at:
~/Library/Application Support/Claude/claude_desktop_config.json
With the following content:
{
"mcpServers": {
"tlon-mcp": {
"command": "/bin/sh",
"args": ["-c", "cd /path/to/server && node index.js"]
}
}
}Important: Be sure to run npm install in the server directory first before configuring Claude Desktop.
Once configured, you can use natural language commands:
Send a message to Brian
Show me my recent DM history with ~sampel-palnet
Who are my contacts?
Sends a direct message to another ship.
Parameters:
recipient: The recipient's ship name (with ~) or nicknamemessage: The message text to send
Example usage:
Send a message to Brian saying "Let's meet tomorrow"
Fetches the latest messages from a direct-message channel between your ship and another.
Parameters:
correspondent: The other ship's name (with ~) or nicknamecount(optional): How many messages to return (default 100, max 500)format(optional): Output format - "raw" or "formatted" (default "formatted")
Example usage:
Show me my last 50 messages with Dad
Retrieves your contacts list with ship IDs and nicknames.
Parameters:
format(optional): Output format - "raw" or "formatted" (default "formatted")
Example usage:
List all my contacts
MIT