Installation
For Humans
Paste this into your AI agent (Claude Code, Cursor, etc.):For AI Agents
Goal
Install AutoSearch and configure the MCP server so the user’s agent has access to 40 search channels across academic papers, developer platforms, Chinese social media, and more.⚠️ Boundaries
- DO NOT run commands with
sudounless the user explicitly approved - DO NOT modify system files outside the user’s home directory
- If something requires elevated permissions, tell the user and let them decide
Step 1: Install AutoSearch
The npm package does not runThis will:initautomatically duringnpm install. That is intentional: npm lifecycle scripts can execute code at install time, which is a known supply-chain risk. Runnpx autosearch-ai --yesfor an explicit one-shot install + init, or runautosearch initif the Python CLI is already on PATH. The curl option runsautosearch initautomatically. Without--yes, the npx option prints the install URL it’s about to fetch and waits foryto confirm.
- Detect available LLM providers (Anthropic, OpenAI, Gemini, claude CLI)
- Create
~/.autosearch/config.yaml - Auto-configure MCP clients. Claude Code uses
claude mcp addwhen available;autosearch init --client claude --scope projectwrites project-bound.mcp.json.
Step 3: Check status
Optional: Unlock more channels
Ask the user which optional channels they want, then use these commands:Chinese social media (TikHub auth)
AUTOSEARCH_PROXY_URL and AUTOSEARCH_PROXY_TOKEN satisfy TikHub
channel availability without TIKHUB_API_KEY:
Xiaohongshu with your own account (no TikHub fee)
Twitter / X
Bilibili
YouTube
MCP server config
AutoSearch writes this automatically duringinit. For manual setup:
Claude Code:
claude CLI, run:
<project>/.mcp.json.
Cursor (~/.cursor/mcp.json):