Universal Tool Protocol (UTP)
Cross-platform AI tool integration for Claude, Gemini, ChatGPT, and more
UTP is an open protocol and implementation that lets you connect AI tools to multiple platforms through a single gateway. Write your tool once, use it everywhere.
Features
- Universal Compatibility - Works with Claude Code (MCP), Gemini CLI, ChatGPT, and more
- Token Optimization - 93% context reduction via compressed signatures and lazy loading
- Smart Results - Automatic pagination for large responses
- Edge Deployment - Cloudflare Workers for global, zero-cold-start performance
- Easy Bridge Creation - CLI scaffolder for rapid tool development
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ AI Platforms │
│ Claude Code │ Gemini CLI │ ChatGPT │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ @utp/client │
│ (MCP server that proxies to gateway) │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ @utp/gateway │
│ (Cloudflare Worker - your deployment) │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Tool Bridges │
│ Neo4j Bridge │ Postgres Bridge │ API Bridge │ Custom │
│ (localhost) │ (localhost) │ (localhost) │ (localhost)│
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Your Data Sources │
│ Neo4j DB │ PostgreSQL │ REST API │ Custom │
└─────────────────────────────────────────────────────────────────┘
Quick Start
1. Deploy Your Gateway
# Clone and setup
git clone https://github.com/45black/utp.git
cd utp/packages/gateway
# Install and configure
npm install
npm run setup # Creates KV namespaces, generates tokens
# Deploy
npm run deploy
2. Create a Bridge
# Use the scaffolder
npx @45black/utp-create-bridge my-neo4j-bridge --template neo4j
cd my-neo4j-bridge
# Configure
cp .env.example .env
# Edit .env with your database credentials
# Install and run
npm install
npm start
3. Connect Claude Code
Add to ~/.config/claude-code/mcp.json:
{
"mcpServers": {
"utp": {
"command": "npx",
"args": ["@45black/utp-client"],
"env": {
"UTP_GATEWAY_URL": "https://your-gateway.workers.dev",
"UTP_CLIENT_TOKEN": "your-token-here"
}
}
}
}
Packages
| Package | npm | Description |
|---|---|---|
| @45black/utp-gateway | Cloudflare Worker gateway | |
| @45black/utp-client | MCP client for AI tools | |
| @45black/utp-bridge-core | Core utilities for building bridges | |
| @45black/utp-create-bridge | CLI scaffolder for new bridges |
Token Optimization
Traditional MCP loads all tools at session start:
- 20 tools × 300 tokens = 6,000 tokens
UTP uses compressed signatures + lazy loading:
- 20 tools × 20 tokens = 400 tokens (93% reduction)
Session Start: Load compressed signatures (20 tokens each)
On-Demand: Fetch full schema only when tool is used
Large Results: Return summary + pagination token
Security Model
Your data stays secure:
| Component | Your Control |
|---|---|
| Gateway | Deployed to your Cloudflare account |
| Bridges | Run locally, connect to your databases |
| Tokens | Generated by you, stored in your secrets |
| Data | Never leaves your infrastructure |
The gateway is a stateless router - it never sees your database credentials or stores your data.
Documentation
Examples
- Neo4j Bridge - Query Neo4j with Cypher
- Weather API Bridge - REST API integration
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
MIT - See LICENSE
Built with ❤️ by 45Black Limited