NexusAPI MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NexusAPI MCP Server Show me the schema for the kling-video model"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NexusAPI MCP server, Python, Node.js and n8n examples
An open-source MCP server and production-minded examples for the asynchronous NexusAPI generation flow.
MCP tools for AI agents
The stdio server exposes four tools:
nexusapi_list_models— search the live public model catalog;nexusapi_get_model_schema— inspect the live OpenAPI fields for one model;nexusapi_generate— create an asynchronous, potentially billable generation task;nexusapi_get_task— retrieve task status, result or error.
The server does not hide model-specific validation. Agents should inspect the live schema and obtain user approval before calling the billable generation tool.
After this repository is published, use it from a compatible local MCP host with:
{
"mcpServers": {
"nexusapi": {
"command": "npx",
"args": ["-y", "github:mat12121212/nexusapi-examples"],
"env": {
"NEXUS_API_KEY": "replace-me"
}
}
}
}Requirements: Node.js 20+ and an existing NexusAPI key. The key remains in the local host environment; do not commit it to the repository.
The repository demonstrates one lifecycle shared by the model schemas published in the live NexusAPI OpenAPI document:
Send
POST /generatewith aparamsobject.Store the returned
task_id.Poll
GET /tasks/{task_id}with bounded exponential backoff.Stop on
completedorfailed.
The model-specific fields still come from the live schema. Do not copy parameters between models without checking the NexusAPI documentation and OpenAPI JSON.
Related MCP server: Nexus MCP Server
Examples
src/mcp-server.mjs— local MCP server over stdio.python/nexusapi_client.py— reusable synchronous Python client.python/kling_video.py— Kling 3 text-to-video request.node/nexusapi-client.mjs— dependency-free Node.js 18+ client.node/gpt-image.mjs— GPT Image request.n8n/nexusapi-generate-and-wait.json— importable workflow with polling and failure handling.
Quick start: Python
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
export NEXUS_API_KEY="replace-me"
python python/kling_video.pyQuick start: Node.js
export NEXUS_API_KEY="replace-me"
node node/gpt-image.mjsn8n
Import the JSON file from n8n/, then create the NEXUS_API_KEY environment variable in the n8n runtime. Review the model parameters before executing the workflow. A successful run can incur generation charges.
Safety notes
Keep the API key on the server. Never ship it in browser JavaScript.
A client timeout does not prove that a generation stopped. Save
task_idand check it again.Do not retry an ambiguous
POST /generateautomatically: the first request may have created a paid task.Treat
422as a request/schema problem. Change the request before retrying.Respect
429and temporary5xxresponses with bounded backoff.Review every agent-proposed generation before allowing the billable MCP tool call.
Verification
Verified against the live NexusAPI OpenAPI document and the official MCP TypeScript SDK v2 on 2026-08-01. The included smoke test performs the MCP initialize handshake, lists tools and calls all four tools against a local mock API. No paid generation is used by the test.
Disclosure
This repository is maintained for NexusAPI. The examples are open source under the MIT License; use of the API itself is governed by the service terms and pricing.
Available Tools
4 toolsnexusapi_generateCreate a NexusAPI generation taskA
Create a paid asynchronous generation task. Call nexusapi_get_model_schema first and ask the user to approve potentially billable generation.
Inputs: prompt (required), model_name (required), parameters.
nexusapi_get_model_schemaGet a NexusAPI model schemaA
Read the live OpenAPI parameter schema for one NexusAPI model id before constructing a generation request.
Inputs: model_name (required).
nexusapi_get_taskGet a NexusAPI taskA
Get the status, result or error of a previously created NexusAPI generation task.
Inputs: task_id (required).
nexusapi_list_modelsList NexusAPI modelsA
List the models currently exposed by the public NexusAPI catalog, optionally filtered by kind or search text.
Inputs: kind, query.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct stage of the workflow: listing models, inspecting schemas, creating generation tasks, and retrieving task results. There is no overlap or ambiguity between them.
All tools follow a consistent pattern: the 'nexusapi_' prefix followed by a verb_noun combination (list_models, get_model_schema, generate, get_task). This is uniform and predictable.
Four tools is well-scoped for the server's purpose of managing generation tasks. Each tool is necessary and there are no redundant or missing tools.
The tool set covers the core workflow: discover models, inspect schema, generate, and fetch results. A minor gap is lack of a cancel or delete task operation, but the essential lifecycle is covered.
Maintenance
Related MCP Connectors
Generate images, videos and music with model discovery, cost estimates and asynchronous results.
Generate AI images and videos from your agent: list models, start jobs, and fetch the results.
Discover and call AI agents via MCP. Supports A2A agents and platform agents with async tasks.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceEnables AI assistants to interact with Nexus projects, allowing management of projects, bugs, milestones, concepts, and templates through natural language commands.20-

Nexus MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with the Nexus blockchain, providing tools for querying blockchain data, smart contract calls, transaction submission, and event monitoring.6MIT- AlicenseNot gradedqualityDmaintenanceEnables AI agents to post tasks with JSON-schema validation and run workers, facilitating agent-to-agent collaboration on the NexusToken network.23 PyPI1MIT
- FlicenseAqualityBmaintenanceExposes the Nexus Mods API to AI agents so they can search and inspect mods, browse authors' catalogues, and upload or publish mod files from a local archive in a few aggregated tool calls. It handles authentication, caching, reporting quotas, and the multi-step v3 upload flow, while gating write and publish operations behind opt-in permissions.22-