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 分