Skip to content

Model Context Protocol (MCP)

ToolFront runs as an MCP server to integrate with AI applications like Claude Desktop, Cursor, and GitHub Copilot.


Configuration

First, create your MCP config file by passing your data source URL in the args array:

{
  "mcpServers": {
    "toolfront": {
      "command": "uvx",
      "args": [
        "toolfront[postgres]", // (1)!
        "postgresql://user:pass@host:5432/mydb" // (2)!
      ]
    }
  }
}
  1. Replace with the necessary database extra
  2. Replace with your actual connection URL
{
  "mcpServers": {
    "toolfront": {
      "command": "uvx",
      "args": [
        "toolfront",
        "https://api.example.com/openapi.json" // (1)!
      ]
    }
  }
}
  1. OpenAPI specification URL
{
  "mcpServers": {
    "toolfront": {
      "command": "uvx",
      "args": [
        "toolfront",
        "/path/to/document.pdf" // (1)!
      ]
    }
  }
}
  1. Path to document file

Then, copy-paste your config into your preferred MCP-enabled application.

  1. Open Cursor settings
  2. Navigate to MCP configuration section
  3. Add the appropriate configuration from the tabs above to your MCP settings file
  1. Open your home directory
  2. Navigate to claude_desktop_config.json
  3. Add the appropriate configuration from the tabs above to the file
  1. Open GitHub Copilot settings
  2. Navigate to MCP configuration section
  3. Add the appropriate configuration from the tabs above to your MCP settings

Command Line

Run ToolFront MCP server directly:

uvx toolfront[postgres] "postgresql://user:pass@host:5432/mydb" --transport stdio

Tip

Use uvx toolfront --help to see all available command options.