Apiany Mcp

io.github.ailingqu由 GitHub 帳號 ailingqu 發布v0.1.2更新於 Oct 24, 2026

APIAny MCP server for model discovery, pricing, docs, and integration examples.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

APIAny 官方 MCP 伺服器,讓助理探索 AI 模型、估算點數成本、查詢文件並產生串接範例。

可以做什麼
依供應商、模態、能力與價格瀏覽、搜尋並查詢 APIAny 公開模型。以公開價格資料估算點數成本。取得精簡的 APIAny 文件內容。產生 cURL、Python、JavaScript、Go、Java 與 PHP 的相容範例。在設定金鑰並明確確認付費後建立圖片或影片任務,並查詢非同步任務狀態。
適用情境
當你想在撰寫程式前先挑選 APIAny 的模型、比較點數成本,或取得各語言的串接範例時使用;若需要實際產生圖片或影片,也可在設定金鑰後使用付費任務工具。
執行需求
以 npm 套件在本機執行,需要 Node.js 與網路連線。選填環境變數 APIANY_BASE_URL 可指定服務位址,預設為官方站台。付費的圖片與影片任務工具另需環境變數 APIANY_API_KEY。
安裝前請注意
付費工具會實際產生費用,需同時具備 APIANY_API_KEY 並明確確認付費才會執行;請留意點數消耗。伺服器會從目前行程環境讀取金鑰,請妥善保護。查詢模型與文件時會連線至 APIAny 服務。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

APIAny MCP

Official MCP server for APIAny model discovery, pricing context, documentation lookup, and OpenAI-compatible integration examples.

APIAny connects agents and developers to 100+ AI models for chat, image, video, and multimodal workflows.

[npm version] [npm package] [release] [license] [Node.js] [MCP server]

Quick Start · Visual Setup · MCP Tools · Agent Skill · Development

English | 中文

[APIAny MCP overview]

What This Repository Provides

APIAny MCP gives AI agents a structured way to understand and use APIAny:

  • Discover public APIAny models by provider, modality, capability, and pricing metadata.
  • Estimate APIAny credits before choosing a model or running a workflow.
  • Fetch compact documentation context from APIAny docs and llms.txt.
  • Generate OpenAI-compatible cURL, Python, JavaScript, Go, Java, and PHP examples.
  • Create image or video generation tasks only when an API key is configured and the user explicitly confirms paid usage.
  • Package an agent skill at skills/apiany-integration so supported agents can learn the APIAny workflow.

Quick Start

Run the server directly with npm:

bash
npx -y @apiany-ai/mcp

Or install and run it from this repository:

bash
git clone [email protected]:ailingqu/ApiAny.AI-MCP.gitcd ApiAny.AI-MCPnpm installnpm start

Visual Setup

1. Install and Start the MCP Server

[Install APIAny MCP with npx]

2. Add APIAny MCP to Your Agent Client

Use this configuration in Claude Code, Cursor, VS Code, or another MCP-compatible client:

[APIAny MCP client configuration]

json
{  "mcpServers": {    "apiany": {      "command": "npx",      "args": ["-y", "@apiany-ai/mcp"],      "env": {        "APIANY_BASE_URL": "https://apiany.ai"      }    }  }}

For paid image or video task tools, also set APIANY_API_KEY:

json
{  "APIANY_BASE_URL": "https://apiany.ai",  "APIANY_API_KEY": "your_apiany_api_key"}

3. Ask Your Agent to Use APIAny

[APIAny MCP tool usage in an agent conversation]

Example prompts:

text
Use APIAny MCP to find an image model for product photos, compare pricing, and show JavaScript integration code.
text
Use APIAny MCP to estimate credits for 20 gpt-style chat requests with 10k input tokens and 5k output tokens.
text
Use APIAny MCP to show JavaScript usage for nano-banana-pro and Python usage for veo3-1-fast.

MCP Tools

ToolPurposeAPI key
list_modelsList public APIAny models with pricing and capability metadata.No
search_modelsSearch models by text, provider, modality, or capability.No
get_modelGet one public model by model id or display name.No
estimate_costEstimate credits from public pricing metadata.No
get_model_usageReturn endpoint, payload, async behavior, and language examples for models.No
get_integration_examplesReturn cURL, Python, JavaScript, Go, Java, or PHP examples.No
get_docs_contextReturn compact APIAny documentation context from /llms.txt.No
create_image_taskCreate a paid async image task after explicit confirmation.Yes
create_video_taskCreate a paid async video task after explicit confirmation.Yes
get_task_statusRead async media task status.Yes

Agent Skill

The APIAny Integration skill lives in skills/apiany-integration.

It helps agents:

  • Choose APIAny models by modality, provider, pricing, and capability.
  • Generate examples for chat, image, video, and media workflows.
  • Explain async task creation and polling.
  • Require explicit confirmation before paid generation tasks.

Environment Variables

VariableRequiredDescription
APIANY_BASE_URLNoAPIAny base URL. Defaults to https://apiany.ai.
APIANY_API_KEYOnly for paid toolsAPI key used for paid image/video task creation and task polling.

Safety Model

Read-only tools work without an API key. Paid generation tools require both:

  • APIANY_API_KEY
  • confirm_paid_request=true

The server does not persist API keys. It only reads them from the current process environment.

Development

bash
npm installnpm run checknpx -y @modelcontextprotocol/inspector node src/server.js

Useful files:

Links

License

MIT

來源:README.md,提交 0fc4e24

工具

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

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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