MCP Integration

Huginn supports the Model Context Protocol (MCP) for extending its tool set with custom servers.

What is MCP?

MCP is an open protocol for connecting AI assistants to external tools and data sources via a standard interface. MCP servers expose tools that Huginn can call in its agentic loop.

Configuring MCP servers

Add MCP servers to ~/.huginn/config.json:

{
  "mcp_servers": [
    {
      "name": "my-tools",
      "command": "npx",
      "args": ["-y", "@my-org/mcp-server"],
      "env": {}
    }
  ]
}

Huginn launches the MCP server as a subprocess on startup and makes its tools available in the loop.

Examples

  • Database query tools
  • Web search integration
  • Internal API connectors
  • Custom code analysis tools