Skip to content

Install

Prerequisites

  • A TinyFish account with an API key from agent.tinyfish.ai
  • Set the TINYFISH_API_KEY environment variable before running any SDK or CLI command
bash
export TINYFISH_API_KEY="your_api_key_here"

Add this to your shell profile (.bashrc, .zshrc) or a .env file. If using a .env file, add .env to .gitignore.


Python SDK

bash
python3 -m venv .venv && source .venv/bin/activate
pip install tinyfish

TypeScript / Node SDK

bash
npm i @tiny-fish/sdk
npm pkg set type=module

CLI

bash
npm install -g @tiny-fish/cli

MCP (no local install)

Add the hosted MCP server to your AI assistant config. No npm or pip install required:

json
{
  "mcpServers": {
    "tinyfish": {
      "url": "https://agent.tinyfish.ai/mcp"
    }
  }
}

The MCP server exposes Search, Fetch, Agent, and Browser as tools directly in Claude or any compatible assistant.