Using Dynamic Tools in MCP Clients
UnifAI SDK provides an MCP (Model Context Protocol) server that can be used with MCP-compatible clients like Claude Desktop.
Setting Up the MCP Server
- JavaScript/TypeScript
- Python
{
"mcpServers": {
"unifai-tools": {
"command": "npx",
"args": [
"-y",
"-p",
"unifai-sdk",
"unifai-tools-mcp"
],
"env": {
"UNIFAI_AGENT_API_KEY": "YOUR_AGENT_API_KEY"
}
}
}
}
{
"mcpServers": {
"unifai-tools": {
"command": "uvx",
"args": [
"--from",
"unifai-sdk",
"unifai-tools-mcp"
],
"env": {
"UNIFAI_AGENT_API_KEY": "YOUR_AGENT_API_KEY"
}
}
}
}
Configuration Steps
- Install
npm
(for JavaScript/TypeScript) oruvx
(for Python) following the official installation instructions. - Update your MCP client configuration (for example, in Claude Desktop) with the JSON configuration above.
- Make sure you put your agent API key in the configuration file.
Once configured, your MCP client will detect and utilize the tools exposed by your toolkit.