Skip to main content

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

{
"mcpServers": {
"unifai-tools": {
"command": "npx",
"args": [
"-y",
"-p",
"unifai-sdk",
"unifai-tools-mcp"
],
"env": {
"UNIFAI_AGENT_API_KEY": "YOUR_AGENT_API_KEY"
}
}
}
}

Configuration Steps

  1. Install npm (for JavaScript/TypeScript) or uvx (for Python) following the official installation instructions.
  2. Update your MCP client configuration (for example, in Claude Desktop) with the JSON configuration above.
  3. 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.