Atmosphere

v1.0.0Coding Agentsstable

Real-time transport layer for Java AI agents. Build once with @Agent — deliver over WebSocket, SSE, gRPC, and WebTransport/HTTP3. Talk MCP, A2A and AG-UI.

acpagentic-aiembabelevent-drivenjava
Share:
3,766
Stars
0
Downloads
0
Weekly
0/5

What is Atmosphere?

Atmosphere is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to real-time transport layer for java ai agents. build once with @agent — deliver over websocket, sse, grpc, and webtransport/http3. talk mcp, a2a and ag-ui.

Real-time transport layer for Java AI agents. Build once with @Agent — deliver over WebSocket, SSE, gRPC, and WebTransport/HTTP3. Talk MCP, A2A and AG-UI.

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Real-time transport layer for Java AI agents. Build once wit

Use Cases

Build Java AI agents with WebSocket and gRPC delivery.
Deploy agents over multiple transport layers (SSE, HTTP3, WebTransport).
Atmosphere

Maintainer

LicenseApache-2.0
Languagejava
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx atmosphere

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Atmosphere

Atmosphere is a JVM framework for building production-grade AI agents that communicate over WebSocket, SSE, long-polling, gRPC, and WebTransport/HTTP3 from a single codebase. Agents are declared with simple Java annotations (@Agent, @Prompt, @Command, @AiTool) and can expose their capabilities via MCP, A2A protocol, and AG-UI without code changes. The framework ships with twelve AI runtime adapters covering Anthropic, OpenAI, LangChain4j, Spring AI, and Google ADK, plus built-in enterprise governance including cost ceilings, PII redaction, and human-in-the-loop approval gates.

Prerequisites

  • Java 21 or later (JDK installed)
  • Maven or Gradle build tool
  • Docker (optional, for running the sample applications)
  • An LLM provider API key (e.g. Anthropic, OpenAI, Cohere)
  • A servlet container (Spring Boot, Quarkus, Jetty, or Tomcat) for deployment
1

Install the Atmosphere CLI

Install the Atmosphere CLI using Homebrew on macOS/Linux, or via the curl installer for other platforms.

brew install Atmosphere/tap/atmosphere
# or
curl -fsSL https://raw.githubusercontent.com/Atmosphere/atmosphere/main/cli/install.sh | sh
2

Create a new agent application

Use the CLI to scaffold a new Spring Boot AI agent project with the ai-chat template. The --template flag selects from ai-chat, ai-tools, or multi-agent-startup-team.

atmosphere new my-agent --template ai-chat
cd my-agent
3

Set your LLM API key and start the application

Pass your LLM provider API key as an environment variable when starting the application. The framework reads LLM_API_KEY by default, or adapter-specific keys like anthropic.api.key.

LLM_API_KEY=your-api-key ./mvnw spring-boot:run
4

Add a Maven dependency for Spring Boot integration

For existing Spring Boot 4.0 projects, add the atmosphere-spring-boot-starter dependency to your pom.xml to enable the framework's agent capabilities.

<dependency>
  <groupId>org.atmosphere</groupId>
  <artifactId>atmosphere-spring-boot-starter</artifactId>
  <version>${atmosphere.version}</version>
</dependency>
5

Declare an agent with tools

Use Java annotations to define your agent class, prompt handler, and AI-callable tools. The @AiTool annotation makes a method available to the LLM for function calling.

@Agent(name="my-agent", description="A helpful AI agent")
public class MyAgent {

  @Prompt
  public Flux<String> chat(String message) {
    return runtime.stream(message);
  }

  @AiTool(description="Get current weather for a city")
  public String getWeather(String city) {
    return weatherService.fetch(city);
  }
}
6

Connect via MCP endpoint

Atmosphere exposes each agent as an MCP endpoint. Point your MCP client to the agent's MCP URL to access its tools and prompts over the standard protocol.

# MCP endpoint pattern:
# http://localhost:8080/atmosphere/agent/my-agent/mcp

Atmosphere Examples

Claude Desktop configuration

Connect Claude Desktop to a running Atmosphere agent via its MCP endpoint using the streamable_http transport.

{
  "mcpServers": {
    "atmosphere-agent": {
      "url": "http://localhost:8080/atmosphere/agent/my-agent/mcp",
      "transport": "streamable_http"
    }
  }
}

Prompts to try

After connecting an Atmosphere agent to Claude Desktop, use these prompts to test the integration.

- "What tools does this agent have available?"
- "Run the spring-boot-multi-agent-startup-team sample: atmosphere run spring-boot-multi-agent-startup-team"
- "Create a new ai-tools agent: atmosphere new my-tools-agent --template ai-tools --runtime langchain4j"
- "What is the weather in Tokyo?" (if a weather @AiTool is implemented)
- "List all agents registered in the Atmosphere admin plane"

Troubleshooting Atmosphere

Application fails to start with 'LLM_API_KEY not set' error

Set the LLM_API_KEY environment variable before running: export LLM_API_KEY=your-key && ./mvnw spring-boot:run. For Anthropic specifically you can also set anthropic.api.key in application.properties.

MCP endpoint returns 404 when connecting from Claude Desktop

Verify the agent is running and that the MCP URL path matches the agent name declared in @Agent(name=...). The endpoint pattern is /atmosphere/agent/<agent-name>/mcp. Check Spring Boot logs for the registered route.

WebTransport/HTTP3 transport not working

HTTP3 requires an additional dependency: either jetty-http3-server or reactor-netty-http. It also requires a valid TLS certificate — self-signed development certs work for local testing. Add the dependency and configure TLS in application.properties.

Frequently Asked Questions about Atmosphere

What is Atmosphere?

Atmosphere is a Model Context Protocol (MCP) server that real-time transport layer for java ai agents. build once with @agent — deliver over websocket, sse, grpc, and webtransport/http3. talk mcp, a2a and ag-ui. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Atmosphere?

Follow the installation instructions on the Atmosphere GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Atmosphere?

Atmosphere works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Atmosphere free to use?

Yes, Atmosphere is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "atmosphere": { "command": "npx", "args": ["-y", "atmosphere"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Atmosphere?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides