Skip to main content
Every Squirrels project has an MCP server running at /mcp automatically. Thus, AI tools that support the Model Context Protocol can be used to ask questions about the datasets configured in a Squirrels project. This guide assumes that you have a Squirrels server running at http://localhost:8000 in standalone mode.

Authorization header (when required)

If your project uses auth_type: required, your MCP client must authenticate.
  • For auth_strategy: external, MCP requests must include Authorization: Bearer <token> where <token> is a provider-issued OAuth access token (or JWT).
    • If authentication is missing/invalid, the server responds with HTTP 401 and a WWW-Authenticate header that includes a resource_metadata URL (usually served at /.well-known/oauth-protected-resource).
    • MCP clients that support OAuth discovery can use this to find the correct authorization server to authenticate with and fetch the access token from first.
  • For auth_strategy: managed, MCP requests can include x-api-key: <api_key> as a header where <api_key> is an API key issued by the Squirrels API server.

MCP clients

Choose which AI tool you want to use to interact with your Squirrels project.
Prerequisites:Steps:
  1. Open Claude Desktop.
  2. Click your name in the lower left corner, then click Settings.
  3. Click Developer under “Desktop app”. Claude Desktop Settings
  4. Click the Edit Config button. This opens the file location of claude_desktop_config.json.
  5. Open claude_desktop_config.json in a text editor, and paste in the following:
{
  "mcpServers": {
    "squirrels-analytics": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", 
        "http://localhost:8000/mcp"
      ]
    }
  }
}
  1. Save the file and exit Claude Desktop (this is different than closing the window).
  • To exit Claude Desktop on Windows, click the menu icon on the top left corner and then click File -> Exit
  1. Open Claude Desktop again. You should now see the Squirrels project enabled by clicking the “search and tools” icon below the chat input. Claude Desktop Tools Menu
  2. Ask questions about the datasets in the Squirrels project. See the section below for example prompts.

Example prompts

The following are sample prompts that can be used for any Squirrels project when interacting with an AI chat agent:
What datasets do you have access to?
What tools do you have access to?
Other prompts to ask depend on the datasets in your Squirrels project.