MIAPI — Grounded Web Answers

uk.miapi由 miapi.uk 發布v1.1.1更新於 Oct 25, 2026

Web search and AI answers with real source citations and a confidence score.

概覽

AI 產生的概覽

MIAPI 是本地 MCP 伺服器,讓助理取得附真實來源引用的網路 AI 答案,並提供網頁、新聞與圖片搜尋。

可以做什麼
取得以即時網頁搜尋為依據的 AI 答案,附引用與信心分數,可選知識模式依提供的文字作答,或串流輸出。執行原始網頁搜尋並回傳來源標題與連結。依主題搜尋新聞,依關鍵字搜尋圖片。查詢本月用量與方案等級。
適用情境
適合希望助理依據最新網頁來源回答問題並顯示出處,而非依賴模型記憶的情境。也適合快速查詢新聞或圖片,以及僅依自有文字作答。
執行需求
以本機程序執行,需從 miapi-sdk Python 套件(含 mcp 附加元件)安裝,因此需要 Python。需要 MIAPI API 金鑰,透過環境變數 MIAPI_API_KEY 提供;有免費額度。需要連線至 MIAPI 服務的網路存取。
安裝前請注意
必須提供 MIAPI_API_KEY 金鑰,並會傳送給 MIAPI 服務。查詢內容(包括知識模式下傳入的文字)會傳送給第三方。用量依每月額度計算,且有付費方案,大量使用可能產生費用。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MIAPI — Grounded Web Answers,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

MIAPI — Grounded AI Answers API

Official Python client for MIAPI — get AI-powered answers grounded in real-time web search.

Install

bash
pip install miapi-sdk

Quick Start

python
from miapi import MIAPI
client = MIAPI("YOUR_API_KEY")
# Get a grounded answer with citationsresult = client.answer("What is quantum computing?", citations=True)print(result.answer)     # AI-generated answer with [1][2] markersprint(result.sources)    # List of source URLsprint(result.confidence) # 0.0 - 1.0

Features

Web-Grounded Answers

python
result = client.answer("Who won the last World Cup?")print(result.answer)

Knowledge Mode — Answer From Your Data

python
result = client.answer(    "What is the return policy?",    mode="knowledge",    knowledge="Returns accepted within 30 days with receipt...")print(result.answer)

Search Only — Raw Results

python
sources = client.search("latest AI research papers")for source in sources:    print(source.title, source.url)

News Search

python
news = client.news("technology", num_results=5)for article in news:    print(article.title, article.date)

Image Search

python
images = client.images("golden retriever")for img in images:    print(img.url, img.width, img.height)

Streaming

python
for event in client.stream("Explain quantum computing"):    if event['type'] == 'answer':        print(event['content'], end='', flush=True)    elif event['type'] == 'done':        print(f"\nDone in {event.get('query_time_ms')}ms")

Check Usage

python
info = client.usage()print(f"Used {info.queries_this_month}/{info.monthly_limit} this month")print(f"Tier: {info.tier}")

Custom Options

python
result = client.answer(    "Compare Python and Rust",    response_format="markdown",   # text, short, json, markdown    temperature=0.5,              # 0.0 (precise) to 1.0 (creative)    max_tokens=800,               # Max answer length    language="French",            # Answer in any language    search_domains=["wikipedia.org"],  # Restrict sources    system_prompt="Answer like a professor",)

Error Handling

python
from miapi import MIAPI, MIAPIError, RateLimitError, AuthenticationError
client = MIAPI("YOUR_API_KEY")
try:    result = client.answer("Hello")except AuthenticationError:    print("Bad API key")except RateLimitError as e:    print(f"Rate limited: {e.message}")except MIAPIError as e:    print(f"Error: {e.message} (HTTP {e.status_code})")

OpenAI Drop-in Replacement

MIAPI is also compatible with the OpenAI Python client:

python
from openai import OpenAI
client = OpenAI(    api_key="YOUR_MIAPI_KEY",    base_url="https://api.miapi.uk/v1")
response = client.chat.completions.create(    model="miapi-grounded",    messages=[{"role": "user", "content": "What is AI?"}])print(response.choices[0].message.content)

Get Your API Key

Sign up free at miapi.uk — 500 queries/month included.

Links

Use from Claude Desktop, Cursor or Windsurf (MCP)

MIAPI ships an MCP server, so an AI assistant can search the web and get answers with real citations without you writing any code.

bash
pip install "miapi-sdk[mcp]"

Then add it to your assistant's MCP config:

json
{  "mcpServers": {    "miapi": {      "command": "miapi-mcp",      "env": { "MIAPI_API_KEY": "your_key_here" }    }  }}

Tools it provides: web_answer, web_search, news_search, image_search, check_usage.

Get a key at https://miapi.uk — free tier included.

來源:README.md,提交 1f6137c

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分