APIAny MCP server for model discovery, pricing, docs, and integration examples.
APIAny MCP gives AI agents a structured way to understand and use APIAny:
llms.txt.skills/apiany-integration so supported agents can learn the APIAny workflow.Run the server directly with npm:
npx -y @apiany-ai/mcp
Or install and run it from this repository:
git clone git@github.com:ailingqu/ApiAny.AI-MCP.git
cd ApiAny.AI-MCP
npm install
npm start
Use this configuration in Claude Code, Cursor, VS Code, or another MCP-compatible client:
{
"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:
{
"APIANY_BASE_URL": "https://apiany.ai",
"APIANY_API_KEY": "your_apiany_api_key"
}
Example prompts:
Use APIAny MCP to find an image model for product photos, compare pricing, and show JavaScript integration code.
Use APIAny MCP to estimate credits for 20 gpt-style chat requests with 10k input tokens and 5k output tokens.
Use APIAny MCP to show JavaScript usage for nano-banana-pro and Python usage for veo3-1-fast.
| Tool | Purpose | API key |
|---|---|---|
list_models | List public APIAny models with pricing and capability metadata. | No |
search_models | Search models by text, provider, modality, or capability. | No |
get_model | Get one public model by model id or display name. | No |
estimate_cost | Estimate credits from public pricing metadata. | No |
get_model_usage | Return endpoint, payload, async behavior, and language examples for models. | No |
get_integration_examples | Return cURL, Python, JavaScript, Go, Java, or PHP examples. | No |
get_docs_context | Return compact APIAny documentation context from /llms.txt. | No |
create_image_task | Create a paid async image task after explicit confirmation. | Yes |
create_video_task | Create a paid async video task after explicit confirmation. | Yes |
get_task_status | Read async media task status. | Yes |
The APIAny Integration skill lives in skills/apiany-integration.
It helps agents:
| Variable | Required | Description |
|---|---|---|
APIANY_BASE_URL | No | APIAny base URL. Defaults to https://apiany.ai. |
APIANY_API_KEY | Only for paid tools | API key used for paid image/video task creation and task polling. |
Read-only tools work without an API key. Paid generation tools require both:
APIANY_API_KEYconfirm_paid_request=trueThe server does not persist API keys. It only reads them from the current process environment.
npm install
npm run check
npx -y @modelcontextprotocol/inspector node src/server.js
Useful files:
src/server.js: MCP server implementation.examples/mcp.json: client configuration example.docs/distribution.md: release checklist for npm, MCP directories, and skill marketplaces.CHANGELOG.md: release history.MIT
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y @apiany-ai/mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-ailingqu-apiany-mcp": {
"command": "npx",
"args": [
"-y",
"@apiany-ai/mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup reference@apiany-ai/mcpnpmio.github.ailingqu/apiany-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.