실시간 웹 검색 결과에 기반하여 출처 인용 및 신뢰도 점수와 함께 AI 기반 답변을 제공합니다.
다른 이름 Doyukndr/miapi-python, miapi-python, miapi-sdk
- 스타
- 1
- Tools
- —
- 다운로드, 30일
- 272
- 최신 버전
- 1.1.1
- 마지막 커밋
- 2026년 8월 29일
- 라이선스
- MIT
MIAPI MCP란?
MIAPI은(는) MCP server입니다. 실시간 웹 검색 결과에 기반하여 출처 인용 및 신뢰도 점수와 함께 AI 기반 답변을 제공합니다.
프로젝트 README에서 생성된 요약
MIAPI MCP server 정보
MIAPI는 AI 어시스턴트를 사용하는 개발자가 검증 가능한 인용 문구가 포함된 실시간 웹 정보를 검색할 수 있도록 지원합니다. 이 MCP server를 사용하면 Claude Desktop, Cursor, Windsurf와 같은 도구가 라이브 웹 데이터, 뉴스, 이미지에 접근하여 최신 사실에 기반한 답변을 생성할 수 있습니다. 사용자는 miapi-sdk를 설치하고 MCP 설정에 MIAPI_API_KEY를 구성하여 연결할 수 있습니다.
개발자는 근거 있는 답변을 위한 web_answer, 원시 결과 검색을 위한 web_search, 최신 기사 검색을 위한 news_search, 시각적 콘텐츠를 위한 image_search 등 특정 도구를 활용할 수 있습니다. 또한 서버는 월간 쿼리 제한 및 계정 티어를 모니터링할 수 있는 check_usage 도구를 제공합니다. 이 서버는 신뢰도 점수와 출처 표시를 통해 투명성을 제공하며, AI 클라이언트에 제공되는 정보가 특정 URL로 추적 가능하도록 설계되었습니다.
활용 사례
- 1최신 뉴스 검색특정 주제에 대한 최신 기사를 요청하여 AI 어시스턴트가 최신 사건을 파악하도록 합니다.
- 2특정 이미지 찾기텍스트 설명을 기반으로 AI가 이미지 URL을 찾아 가져오도록 지시합니다.
- 3API 사용량 모니터링어시스턴트 인터페이스 내에서 월간 제한 대비 사용된 쿼리 수를 확인합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
MIAPI MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 MIAPI MCP 설치
$ claude mcp add --env 'MIAPI_API_KEY=<YOUR_MIAPI_API_KEY>' miapi-python -- uvx miapi-sdkCursor에 MIAPI MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"miapi-python": {
"command": "uvx",
"args": [
"miapi-sdk"
],
"env": {
"MIAPI_API_KEY": "<YOUR_MIAPI_API_KEY>"
}
}
}
}VS Code에 MIAPI MCP 설치
.vscode/mcp.json
{
"servers": {
"miapi-python": {
"type": "stdio",
"command": "uvx",
"args": [
"miapi-sdk"
],
"env": {
"MIAPI_API_KEY": "<YOUR_MIAPI_API_KEY>"
}
}
}
}VS Code CLI에 MIAPI MCP 설치
$ code --add-mcp '{"name":"miapi-python","type":"stdio","command":"uvx","args":["miapi-sdk"],"env":{"MIAPI_API_KEY":"<YOUR_MIAPI_API_KEY>"}}'Claude Desktop에 MIAPI MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"miapi-python": {
"command": "uvx",
"args": [
"miapi-sdk"
],
"env": {
"MIAPI_API_KEY": "<YOUR_MIAPI_API_KEY>"
}
}
}
}Codex에 MIAPI MCP 설치
$ codex mcp add miapi-python --env 'MIAPI_API_KEY=<YOUR_MIAPI_API_KEY>' -- uvx miapi-sdkCodex config.toml에 MIAPI MCP 설치
~/.codex/config.toml
[mcp_servers.miapi-python] command = "uvx" args = ["miapi-sdk"] [mcp_servers.miapi-python.env] MIAPI_API_KEY = "<YOUR_MIAPI_API_KEY>"
Gemini CLI에 MIAPI MCP 설치
$ gemini mcp add -s user -e 'MIAPI_API_KEY=<YOUR_MIAPI_API_KEY>' miapi-python uvx -- miapi-sdkGemini settings.json에 MIAPI MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"miapi-python": {
"command": "uvx",
"args": [
"miapi-sdk"
],
"env": {
"MIAPI_API_KEY": "<YOUR_MIAPI_API_KEY>"
}
}
}
}구성
MIAPI_API_KEY필수비밀Your MIAPI API key. Free tier available at https://miapi.uk
| 이름 | 설명 | 유형 |
|---|---|---|
| MIAPI_API_KEY | Your MIAPI API key. Free tier available at https://miapi.uk | 필수비밀 |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능doyukndr/miapi-python is public and reachablegithub.com/doyukndr/miapi-python ↗통과
- 패키지가 이 저장소를 소스로 명시miapi-sdk names doyukndr/miapi-python as sourcepypi.org/project/miapi-sdk/ ↗통과
- 빌드 출처(Sigstore 증명)No build attestation published for this release검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-08-29github.com/doyukndr/miapi-python ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from miapi-sdk통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음6 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기MIAPI — Grounded AI Answers API
Official Python client for MIAPI — get AI-powered answers grounded in real-time web search.
Install
pip install miapi-sdk
Quick Start
from miapi import MIAPI
client = MIAPI("YOUR_API_KEY")
# Get a grounded answer with citations
result = client.answer("What is quantum computing?", citations=True)
print(result.answer) # AI-generated answer with [1][2] markers
print(result.sources) # List of source URLs
print(result.confidence) # 0.0 - 1.0
Features
Web-Grounded Answers
result = client.answer("Who won the last World Cup?")
print(result.answer)
Knowledge Mode — Answer From Your Data
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
sources = client.search("latest AI research papers")
for source in sources:
print(source.title, source.url)
News Search
news = client.news("technology", num_results=5)
for article in news:
print(article.title, article.date)
Image Search
images = client.images("golden retriever")
for img in images:
print(img.url, img.width, img.height)
Streaming
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
info = client.usage()
print(f"Used {info.queries_this_month}/{info.monthly_limit} this month")
print(f"Tier: {info.tier}")
Custom Options
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
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:
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.
pip install "miapi-sdk[mcp]"
Then add it to your assistant's MCP config:
{
"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.
MIAPI MCP 질문
MIAPI MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --env 'MIAPI_API_KEY=<YOUR_MIAPI_API_KEY>' miapi-python -- uvx miapi-sdk를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
MIAPI MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
OpenAI 클라이언트와 MIAPI를 함께 사용할 수 있나요?
네, base URL을 변경하고 miapi-grounded 모델을 사용하면 OpenAI Python 클라이언트와 호환됩니다.
MCP server에서 제공하는 도구는 무엇인가요?
MCP server는 web_answer, web_search, news_search, image_search, check_usage 도구를 제공합니다.
검색 범위를 특정 웹사이트로 제한할 수 있나요?
네, search_domains 옵션을 사용하여 wikipedia.org와 같은 특정 도메인으로 출처를 제한할 수 있습니다.