
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

An MCP server that bridges Sunra.ai with code assistants and IDEs, exposing Sunra's models and tools via the Model Context Protocol.
Sunra MCP server is cataloged as an MCP server attributed to sunra-ai. An MCP server that bridges Sunra.ai with code assistants and IDEs, exposing Sunra's models and tools via the Model Context Protocol. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Sunra MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It supports listing models, fetching model schemas, submitting jobs, and streaming results, among other capabilities.
API keys are managed via environment variables or runtime configuration.
README.md · 729c5bcd0d16 · 采集于 2026-11-13 14:01:19 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
This repository contains the official client libraries for sunra.ai, a platform for deploying and running AI models. The libraries provide robust and user-friendly interfaces for integrating sunra.ai endpoints into your applications across multiple programming languages.
clients/python/sunra-client (PyPI)pip install sunra-clientclients/javascript/@sunra/client (npm)npm install @sunra/clientclients/java/ai.sunra.client:sunra-client (Maven Central)implementation "ai.sunra.client:sunra-client:0.1.6"Before using any client library, you'll need to:
export SUNRA_KEY=your-api-keyimport sunra_client
# Simple synchronous call
result = sunra_client.subscribe(
"openai/gpt-image-2/text-to-image",
arguments={"prompt": "a cute cat, realistic, orange", "quality": "high"}
)
print(result["images"][0]["url"])
# Asynchronous call
async def main():
result = await sunra_client.subscribe_async(
"openai/gpt-image-2/text-to-image",
arguments={"prompt": "a cute cat, realistic, orange", "quality": "high"}
)
print(result["images"][0]["url"])
import { createSunraClient } from "@sunra/client";
const sunra = createSunraClient({
credentials: process.env.SUNRA_KEY,
});
const result = await sunra.subscribe("openai/gpt-image-2/text-to-image", {
input: {
prompt: "a cute cat, realistic, orange",
quality: "high",
},
});
console.log(result.images[0].url);
Sunra's LLM endpoints are compatible with the standard OpenAI and Anthropic API formats. Use the corresponding official SDK with https://api-llm.sunra.ai/v1 as the base URL; a separate Sunra LLM package is not required.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.SUNRA_KEY,
baseURL: "https://api-llm.sunra.ai/v1",
});
const completion = await client.chat.completions.create({
model: "google/gemini-2.5-flash",
messages: [{ role: "user", content: "Hello" }],
provider: { only: ["google-vertexai"] },
});
Omit provider to use automatic routing. See the LLM documentation and the runnable Node.js and Python examples in this repository.
import ai.sunra.client.*;
var sunra = SunraClient.withEnvCredentials();
var result = sunra.subscribe(
"openai/gpt-image-2/text-to-image",
SubscribeOptions.<JsonObject>builder()
.input(Map.of(
"prompt", "a cute cat, realistic, orange",
"quality", "high"
))
.resultType(JsonObject.class)
.build()
);
System.out.println(result.getData());
For client-side applications, we provide a server proxy to securely handle API calls without exposing your credentials. Available for popular frameworks:
server-proxy/@sunra/server-proxy (npm)The MCP server provides a universal interface for AI model tools, enabling seamless integration with modern code assistants and IDEs such as Cursor and Claude Desktop. It acts as a bridge between Sunra.ai and your development environment, exposing Sunra's models and tools via the Model Context Protocol.
Why use the MCP server?
npx @sunra/mcp-server --transport http --port 3925
.cursor/mcp.json:{
"mcpServers": {
"sunra-mcp-server": {
"url": "http://localhost:3925/sse"
}
}
}
export SUNRA_KEY="your-api-key-here"
sunra-mcp-server and use tools like list-models, model-schema, etc.npx @sunra/mcp-server
npx @sunra/mcp-serverSUNRA_KEY=your-api-key-here
sunra-mcp-server and use the available tools.mcp-server/README.md for full tool list, development, and troubleshooting.The repository includes comprehensive examples for different frameworks and use cases:
examples/demo-nextjs-app-router/ and examples/demo-nextjs-page-router/examples/demo-nodejs/examples/demo-express-app/examples/demo-java/examples/demo-java-async/examples/demo-kotlin/examples/demo-python/To set up the development environment:
pnpm i -rexport SUNRA_KEY=your-api-keyContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
npm installgit checkout -b feat/add-cool-thing) or a bugfix branch (git checkout -b fix/smash-that-bug)git commit -m 'feat(client): added a cool thing') - use conventional commitsgit push --set-upstream origin feat/add-cool-thing)Check the good first issue queue, your contribution will be welcome!
Distributed under the Apache 2.0 License. See LICENSE for more information.
This project is derived from:
and adapted to work with sunra.ai. The original projects are licensed under the MIT/Apache 2.0 License. We extend our gratitude to the original authors for their contributions.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Sunra MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-server-sunra-ai)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.