<@U07FRRZH2GN> can we connect MCP tools to our liv...
# ask-ai
f
@icy-policeman-64898 can we connect MCP tools to our livekit agent?
t
Thanks for reaching out, Abhishek. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To connect MCP (Model Context Protocol) tools to a LiveKit agent, you can follow these steps: 1. Use the
function_tool
function to load tools from an external MCP server. 2. Register these tools with the agent using either the
tools
property or the
update_tools()
method. For a complete implementation example, you can refer to the basic-mcp repository, which demonstrates a voice AI agent that can load dynamic tools from one or more Model Context Protocol servers. Additionally, you can explore another example that shows how to define and use an MCP server within your agent implementation: Python Agents Examples. Sources: LiveKit Docs | Using MCP with LiveKit Agents | Tool definition and use | LiveKit Docs