# Web search for AI agents > morigraph's web search tool lets Claude, ChatGPT, Cursor, Codex or your own code search the live web and get back source links, dates and excerpts. It needs no search vendor account or API key. A search costs nothing with the standard provider and up to 0.14 credits, about 1.4 cents, with Exa. - **Tool name**: `web_search` - **Price**: 0 to 0.14 credits (free to about $0.014) a call - **Providers**: Exa and TinyFish - **Call it from**: MCP, command line and HTTP API - **Needs**: one morigraph connection; no vendor account or API key ## What it is for - **Research with sources**: Ask a question and get pages with links and dates, so the answer can be checked. - **Fresh facts**: Limit results to the last day, week, month or year for news and prices that change. - **Narrow the field**: Search only the domains you trust, or leave out the ones you do not. ## How to call it In your assistant (MCP). Connect once, then ask in plain words: ```sh claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp Search the web for the three most-cited MCP gateway products this month and list each with its source link. ``` From a terminal or script (CLI): ```sh npx @morigraph/cli@latest login morigraph call web_search --json-args '{"query":"MCP gateway products comparison","num_results":5,"recency":"month"}' ``` From your own code (HTTP API): ```sh curl https://api.morigraph.com/v1/tools/web_search \ -H "Authorization: Bearer $MORIGRAPH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"MCP gateway products comparison","num_results":5,"recency":"month"}' ``` What comes back: A list of results, each with a title, URL, published date where known and an excerpt, or fuller page text when you ask for it. ## Arguments | Argument | Type | Required | What it is | |---|---|---|---| | `query` | string | yes | What to search for, as a natural question or keywords. | | `num_results` | integer | no | How many results (1-10). Default 5. | | `include_domains` | array of string | no | Only results from these domains. | | `exclude_domains` | array of string | no | Never results from these domains. | | `recency` | day \| week \| month \| year | no | Only results newer than this. | | `contents` | snippets \| full | no | Excerpts, or fuller page text where the provider supports it. | | `news` | boolean | no | Search news articles only, with publisher and date. Best with recency. | ## Good to know - Without an account you get 10 calls a day through the MCP connection, enough to try it. - Ask for low cost and morigraph uses the provider that costs no credits. Ask for more depth, or name Exa, to pay for neural search. - Results are never merged across providers: one call is one provider's answer. ## What a web search costs, by provider List prices each vendor published on 27 November 2026, for 1,000 searches through its own API or MCP server. | Provider | Needs its own key | Free allowance | About, for 1,000 searches | |---|---|---|---| | morigraph, standard provider | No | 10 calls a day with no account | $0 | | morigraph, Exa | No | 55 free credits for a new workspace | $14 | | Parallel | No | Free without an account, variable limits | $1 to $5 | | Exa, direct | Optional | $10 of credits a month with an account | $4 to $12 | | Perplexity | Yes | None listed | $5 | | Linkup | Yes | 4,000 free queries | $5 | | Brave | Yes | $5 of credits a month | $5 | | Tavily | Yes | 1,000 credits a month | $8 | Exa through morigraph costs more than Exa bought directly. What you get for the difference is no second account, no key to manage and one balance for every other tool. If you run search at high volume, buy it direct. Sources: [Parallel pricing](https://docs.parallel.ai/getting-started/pricing), [Exa pricing](https://exa.ai/pricing), [Perplexity pricing](https://docs.perplexity.ai/docs/getting-started/pricing), [Linkup pricing](https://docs.linkup.so/pages/documentation/development/pricing), [Brave Search API](https://brave.com/search/api/), [Tavily credits](https://docs.tavily.com/documentation/api-credits) ## When to choose something else Choose a dedicated search server when search is the only tool you want and you already have a favourite engine. Perplexity returns a written answer with citations, and Brave runs its own index. The search built into Claude Code and Cursor is enough for an occasional lookup. ## Does Claude Code need a search API key to use this? No. You add one MCP server, sign in to morigraph in your browser, and web search is available. There is no account or key to create with a search vendor. ## Is morigraph web search free? Search with the standard provider costs no credits. Exa costs up to 0.14 credits a search, about 1.4 cents. A new workspace starts with 5 credits and gets 50 more after setup. ## Which search engines are behind it? Two providers serve web search today: TinyFish, which costs no credits, and Exa, a neural search engine. You can let morigraph choose by cost and depth, or name the one you want. ## Can I call it from my own code? Yes. The same tool is available as an HTTP endpoint and from the morigraph command-line tool, using an API key from your workspace. The price is the same as through MCP. ## Related tools - [Web scraping](https://morigraph.com/tools/web-scraping.md): free - [Browser automation](https://morigraph.com/tools/browser-automation.md): 0.32 credits a step - [Data APIs](https://morigraph.com/tools/data.md): 480 APIs for social, search, maps and shopping data - [All tools](https://morigraph.com/tools.md) --- Canonical page: https://morigraph.com/tools/web-search/ Prices read from the production service on 2026-11-27. Connect: https://morigraph.com/connect.md · API docs: https://morigraph.com/docs.md · Site overview: https://morigraph.com/llms.txt