Sunra MCP server

Sunra MCP server

mcp-server-sunra-ai•bysunra-ai

An MCP server that bridges Sunra.ai with code assistants and IDEs, exposing Sunra's models and tools via the Model Context Protocol.

License: Apache 2.0•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Integrates Sunra.ai models and tools with code assistants and IDEs such as Cursor and Claude Desktop via the Model Context Protocol.
  • •Supports listing models, fetching schemas, submitting jobs, and streaming results.
  • •Manages API keys through environment variables or runtime configuration.

BEST FOR

  • •Developers using code assistants like Cursor who want to access Sunra models and tools from their editor.
  • •Claude Desktop users who want to add Sunra's models as available MCP tools.

ABOUT MCP-SERVER-SUNRA-AI

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.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

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.

FREQUENTLY ASKED QUESTIONS

What tools does the Sunra MCP server expose?

It supports listing models, fetching model schemas, submitting jobs, and streaming results, among other capabilities.

How is the Sunra API key handled by the MCP server?

API keys are managed via environment variables or runtime configuration.

Upstream README

View this exact version on GitHub

README.md · 729c5bcd0d16 · Fetched 2026-11-13 14:01:19 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

sunra.ai Client Libraries

English | 简体中文

License @sunra/client npm package PyPI - Version Maven Central Version Discord

About the Project

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.

Available Client Libraries

🐍 Python Client

  • Location: clients/python/
  • Package: sunra-client (PyPI)
  • Features: Synchronous and asynchronous support, streaming responses, file uploads
  • Installation: pip install sunra-client

📦 JavaScript/TypeScript Client

  • Location: clients/javascript/
  • Package: @sunra/client (npm)
  • Features: Works in Web, Node.js, and React Native environments
  • Installation: npm install @sunra/client

☕ Java Client

  • Location: clients/java/
  • Package: ai.sunra.client:sunra-client (Maven Central)
  • Features: Synchronous, asynchronous, and Kotlin coroutine support
  • Installation: implementation "ai.sunra.client:sunra-client:0.1.6"

Quick Start

Before using any client library, you'll need to:

  1. Sign up at sunra.ai
  2. Get your API key from the dashboard
  3. Set your API key as an environment variable: export SUNRA_KEY=your-api-key

Python Example

import 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"])

JavaScript Example

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);

LLM APIs

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.

Java Example

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());

Server Proxy

For client-side applications, we provide a server proxy to securely handle API calls without exposing your credentials. Available for popular frameworks:

  • Location: server-proxy/
  • Package: @sunra/server-proxy (npm)
  • Supports: Next.js, Express, Hono, Remix, SvelteKit

MCP Server (Model Context Protocol)

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?

  • Enables code assistants (like Cursor, Claude, etc.) to access Sunra models and tools directly from your editor
  • Supports listing models, fetching schemas, submitting jobs, streaming results, and more
  • Secure: API keys are managed via environment variables or runtime configuration
  • No need to write glue code—just run the server and connect your tool

Quick Start

1. Install & Run (no local build needed)

npx @sunra/mcp-server --transport http --port 3925

2. For Cursor IDE

  • Add to your .cursor/mcp.json:
{
  "mcpServers": {
    "sunra-mcp-server": {
      "url": "http://localhost:3925/sse"
    }
  }
}
  • Set your API key:
    export SUNRA_KEY="your-api-key-here"
    
  • In Cursor, select the sunra-mcp-server and use tools like list-models, model-schema, etc.

3. For Claude Desktop (Anthropic)

  • Start the server in stdio mode (default):
    npx @sunra/mcp-server
    
  • In Claude Desktop settings, add a new MCP server:
    • Type: Local executable
    • Command: npx @sunra/mcp-server
    • Environment Variables:
      SUNRA_KEY=your-api-key-here
      
  • In Claude, select the sunra-mcp-server and use the available tools.

4. Advanced Usage & Documentation

Examples

The repository includes comprehensive examples for different frameworks and use cases:

Development

To set up the development environment:

  1. Clone the repository
  2. Install dependencies: pnpm i -r
  3. Set up your API key: export SUNRA_KEY=your-api-key
  4. Run examples or tests as needed

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Make sure you read our Code of Conduct
  2. Fork the project and clone your fork
  3. Setup the local environment with npm install
  4. Create a feature branch (git checkout -b feat/add-cool-thing) or a bugfix branch (git checkout -b fix/smash-that-bug)
  5. Commit the changes (git commit -m 'feat(client): added a cool thing') - use conventional commits
  6. Push to the branch (git push --set-upstream origin feat/add-cool-thing)
  7. Open a Pull Request

Check the good first issue queue, your contribution will be welcome!

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

Credits

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.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Sunra MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-sunra-ai)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

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

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

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

sequential_thinking
92K
AI & Multi-Agent

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.

146
AI & Multi-Agent