typesearch
News search for AI agents: recent news on any topic from outlets worldwide, by country and language.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"news": {
"url": "https://api.typesearch.ai/mcp"
}
}
}遠端端點
https://api.typesearch.ai/mcpstreamable-http它能做什麼
工具清單
工具(4)
🟢search_news(query, mode, max_results, days, published_after, ...)
Search recent news on any topic across a curated index of news outlets worldwide, judged by a relevance model. Returns the matching articles: title, link, source, date, country and language, standfirst, and short excerpts in the modes that read. Use it for current events and for what outlets reported about a company, person, place or topic. Defaults: mode "fast" (US$1.40 per 1,000 searches) and the last 7 days; mode "ultra" judges headlines only, for US$1.00.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 2,
"maxLength": 200,
"description": "What to look for, in any language: a topic, event, person, company or place, such as \"inflation in Argentina\" or \"OpenAI funding\"."
},
"mode": {
"default": "fast",
"description": "fast (default): headlines and standfirsts · ultra (cheapest): headlines only · normal: also reads the best matches · deep: reads more, finds the topic in other words too.",
"type": "string",
"enum": [
"ultra",
"fast",
"normal",
"deep"
]
},
"max_results": {
"default": 10,
"description": "How many results, 1 to 25. Defaults to 10.",
"type": "integer",
"minimum": 1,
"maximum": 25
},
"days": {
"description": "Only the last N days, 1 to 365. Defaults to 7 unless published_after or published_before are given.",
"type": "integer",
"minimum": 1,
"maximum": 365
},
"published_after": {
"description": "Published on or after this date: 2026-09-25, or a date-time with offset.",
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
]
},
"published_before": {
"description": "Published on or before this date; a bare date includes that whole day.",
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
]
},
"include_domains": {
"description": "Only these domains or paths, such as example.com or example.com/sports.",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 200
}
},
"exclude_domains": {
"description": "Never these domains or paths.",
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 200
}
},
"countries": {
"description": "Only sources from these countries: ISO 3166-1 alpha-2 codes, such as [\"AR\"] or [\"US\", \"GB\"].",
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"maxLength": 20
}
},
"languages": {
"description": "Only sources that publish in these languages: ISO 639-1 codes, such as [\"es\"] or [\"en\", \"pt\"].",
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 35
}
},
"index": {
"description": "Optional: search your own custom index (its id, idx_…) instead of the news index: your own list of URLs, sitemap or feed, created at https://app.typesearch.ai/indexes or with POST /v1/indexes. Same modes and prices; no date filter unless you pass days or dates.",
"type": "string",
"pattern": "^idx_[a-z0-9]{6,40}$"
}
},
"required": [
"query"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"ultra",
"fast",
"normal",
"deep"
]
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"source": {
"type": "string"
},
"published_at": {
"description": "ISO 8601, UTC, to the minute.",
"type": "string"
},
"country": {
"type": "string"
},
"language": {
"type": "string"
},
"snippet": {
"description": "The standfirst, as the outlet published it (shortened).",
"type": "string"
},
"highlights": {
"description": "Short verbatim excerpts from reading the article.",
"type": "array",
"items": {
"type": "string"
}
},
"score": {
"type": "number",
"description": "Probability that the article is about the query."
},
"found_in": {
"description": "Only when it was not found in the index: where it came from.",
"type": "string",
"enum": [
"homepage",
"section",
"site_search",
"discovery"
]
}
},
"required": [
"title",
"url",
"score"
],
"additionalProperties": false
}
},
"near_misses": {
"description": "Only when nothing matched: the closest articles, which may not be about it.",
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"source": {
"type": "string"
},
"published_at": {
"description": "ISO 8601, UTC, to the minute.",
"type": "string"
},
"country": {
"type": "string"
},
"language": {
"type": "string"
},
"snippet": {
"description": "The standfirst, as the outlet published it (shortened).",
"type": "string"
},
"highlights": {
"description": "Short verbatim excerpts from reading the article.",
"type": "array",
"items": {
"type": "string"
}
},
"score": {
"type": "number",
"description": "Probability that the article is about the query."
},
"found_in": {
"description": "Only when it was not found in the index: where it came from.",
"type": "string",
"enum": [
"homepage",
"section",
"site_search",
"discovery"
]
}
},
"required": [
"title",
"url",
"score"
],
"additionalProperties": false
}
},
"incomplete": {
"description": "The time or token budget ran out: there may be more.",
"type": "boolean",
"const": true
},
"cached": {
"type": "boolean",
"const": true
},
"cost_usd": {
"type": "number"
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"additionalProperties": false
}
},
"request_id": {
"type": "string"
}
},
"required": [
"query",
"mode",
"results",
"cost_usd",
"request_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢get_contents(urls, query)
Get the title, standfirst, date, source and a short verbatim excerpt (up to 25 words) of up to 10 news article URLs. With a query, the excerpt is the one about it and relevance says how much the article covers it. Never returns the full text. US$0.20 per 1,000 pages read (US$0.40 with a query); pages that fail are free.
輸入結構描述
{
"type": "object",
"properties": {
"urls": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"maxLength": 2000
},
"description": "Up to 10 article URLs, such as https://example.com/news/article."
},
"query": {
"description": "Optional: the excerpt is then the one about this query, with a relevance score.",
"type": "string",
"minLength": 2,
"maxLength": 200
}
},
"required": [
"urls"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"ok",
"error"
]
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"published_at": {
"type": "string"
},
"source": {
"type": "string"
},
"excerpt": {
"type": "string"
},
"highlights": {
"type": "array",
"items": {
"type": "string"
}
},
"relevance": {
"type": "number"
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"additionalProperties": false
}
},
"required": [
"url",
"status"
],
"additionalProperties": false
}
},
"cost_usd": {
"type": "number"
},
"request_id": {
"type": "string"
}
},
"required": [
"results",
"cost_usd",
"request_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢find_similar(url, max_results, days)
Find other news articles about the same story as a given article URL, across the index (the last 7 days by default). Useful to see how other outlets covered a story. US$2.20 per 1,000 calls.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2000,
"description": "The article URL whose story to find elsewhere."
},
"max_results": {
"default": 10,
"description": "How many results, 1 to 25. Defaults to 10.",
"type": "integer",
"minimum": 1,
"maximum": 25
},
"days": {
"description": "Only the last N days, 1 to 365. Defaults to 7.",
"type": "integer",
"minimum": 1,
"maximum": 365
}
},
"required": [
"url"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"reference": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"title",
"url"
],
"additionalProperties": false
},
"mode": {
"type": "string",
"enum": [
"ultra",
"fast",
"normal",
"deep"
]
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"source": {
"type": "string"
},
"published_at": {
"description": "ISO 8601, UTC, to the minute.",
"type": "string"
},
"country": {
"type": "string"
},
"language": {
"type": "string"
},
"snippet": {
"description": "The standfirst, as the outlet published it (shortened).",
"type": "string"
},
"highlights": {
"description": "Short verbatim excerpts from reading the article.",
"type": "array",
"items": {
"type": "string"
}
},
"score": {
"type": "number",
"description": "Probability that the article is about the query."
},
"found_in": {
"description": "Only when it was not found in the index: where it came from.",
"type": "string",
"enum": [
"homepage",
"section",
"site_search",
"discovery"
]
}
},
"required": [
"title",
"url",
"score"
],
"additionalProperties": false
}
},
"near_misses": {
"description": "Only when nothing matched: the closest articles, which may not be about it.",
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"source": {
"type": "string"
},
"published_at": {
"description": "ISO 8601, UTC, to the minute.",
"type": "string"
},
"country": {
"type": "string"
},
"language": {
"type": "string"
},
"snippet": {
"description": "The standfirst, as the outlet published it (shortened).",
"type": "string"
},
"highlights": {
"description": "Short verbatim excerpts from reading the article.",
"type": "array",
"items": {
"type": "string"
}
},
"score": {
"type": "number",
"description": "Probability that the article is about the query."
},
"found_in": {
"description": "Only when it was not found in the index: where it came from.",
"type": "string",
"enum": [
"homepage",
"section",
"site_search",
"discovery"
]
}
},
"required": [
"title",
"url",
"score"
],
"additionalProperties": false
}
},
"incomplete": {
"description": "The time or token budget ran out: there may be more.",
"type": "boolean",
"const": true
},
"cached": {
"type": "boolean",
"const": true
},
"cost_usd": {
"type": "number"
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"additionalProperties": false
}
},
"request_id": {
"type": "string"
}
},
"required": [
"mode",
"results",
"cost_usd",
"request_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟡create_chart(query, type, theme, days, compare, ...)
Turn a question into a chart card, without thinking about chart types: the standings of the latest race, poll or election results by candidate, wins in a season, coverage over time, share of voice between names, tone, the outlets that cover a topic most, what an outlet published, a timeline of a story, the figures the articles publish (a price, a rate), or data from a custom index. It works out what the user expects (`understood`, with other readings to pass as `interpretation`), verifies every value against its source, picks the chart, the key figures and a title that states the finding, and returns an image URL (show it to the user) and an embed URL. If the exact data is not published it shows the closest thing and says so (`rung`, warnings). It costs its search (the mode it needs, per query) plus US$0.50 per 1,000 charts; the same request within 10 minutes is free.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 2,
"maxLength": 200,
"description": "What to chart, in plain words and any language: \"blue dollar this week\", \"Milei vs Bullrich coverage\", \"tone of the IMF coverage\", \"which outlets cover lithium\", or \"prices\" with index."
},
"type": {
"default": "auto",
"description": "auto (default) picks the chart that tells the data best. Or force one: line, area, bar, bar_horizontal, stacked_bar, pie, donut, scatter, funnel, timeline, kpi, table.",
"type": "string",
"enum": [
"auto",
"line",
"area",
"bar",
"bar_horizontal",
"stacked_bar",
"pie",
"donut",
"scatter",
"funnel",
"timeline",
"kpi",
"table"
]
},
"theme": {
"default": "light",
"description": "light (default), dark, editorial (warm paper) or electric (deep blue).",
"type": "string",
"enum": [
"light",
"dark",
"editorial",
"electric"
]
},
"days": {
"description": "Only the last N days, 1 to 365. By default it depends on the chart: 30 for coverage, 7 for figures.",
"type": "integer",
"minimum": 1,
"maximum": 365
},
"compare": {
"description": "What to compare, 2 to 5, if the query does not say it with \"vs\": [\"Milei\", \"Bullrich\"].",
"minItems": 2,
"maxItems": 5,
"type": "array",
"items": {
"type": "string",
"maxLength": 80
}
},
"countries": {
"description": "Only sources from these countries: ISO 3166-1 alpha-2 codes, such as [\"AR\"] or [\"US\", \"GB\"].",
"minItems": 1,
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"maxLength": 20
}
},
"languages": {
"description": "Only sources that publish in these languages: ISO 639-1 codes, such as [\"es\"] or [\"en\", \"pt\"].",
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"maxLength": 35
}
},
"index": {
"description": "Optional: chart your own custom index (idx_…) instead of the news: prices, ratings, availability, brands.",
"type": "string",
"pattern": "^idx_[a-z0-9]{6,40}$"
},
"interpretation": {
"description": "Optional: one of the `alternatives` of a previous call, to chart that reading of the query instead.",
"type": "string",
"maxLength": 160
}
},
"required": [
"query"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}輸出結構描述
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"title": {
"type": "string",
"description": "It states the finding."
},
"subtitle": {
"type": "string"
},
"image_url": {
"description": "PNG: show it to the user.",
"type": "string"
},
"embed_url": {
"description": "An iframe for a web page or app.",
"type": "string"
},
"key_figures": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"value": {
"type": "number"
},
"change": {
"type": "number"
},
"change_is_percent": {
"type": "boolean"
}
},
"required": [
"label",
"value"
],
"additionalProperties": false
}
},
"data": {
"description": "The values drawn (up to 40 per series).",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"points": {
"type": "array",
"items": {
"type": "object",
"properties": {
"x": {
"type": [
"string",
"number"
]
},
"y": {
"type": "number"
}
},
"required": [
"x",
"y"
],
"additionalProperties": false
}
}
},
"required": [
"name",
"points"
],
"additionalProperties": false
}
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"label": {
"type": "string"
}
},
"required": [
"date",
"label"
],
"additionalProperties": false
}
},
"table": {
"description": "The rows of a table chart (up to 10), keyed by column label.",
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": [
"string",
"number",
"null"
]
}
}
},
"understood": {
"description": "What we understood the user expects to see.",
"type": "string"
},
"alternatives": {
"description": "Other readings of the query: pass one as `interpretation` to chart it instead.",
"type": "array",
"items": {
"type": "string"
}
},
"rung": {
"description": "exact (the data asked for), partial (a verified part), related, coverage or stories (the closest thing found).",
"type": "string"
},
"improving": {
"description": "Still looking for the exact data: the image and embed update themselves if it arrives.",
"type": "boolean",
"const": true
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"source": {
"type": "string"
}
},
"required": [
"title",
"url"
],
"additionalProperties": false
}
},
"cost_usd": {
"type": "number"
},
"cached": {
"type": "boolean",
"const": true
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"additionalProperties": false
}
},
"request_id": {
"type": "string"
}
},
"required": [
"type",
"title",
"cost_usd",
"request_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}社群
證據