Atmosphere
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.
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
Maintainer
Works with
Installation
Manual Installation
npx atmosphereConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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 | shCreate 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-agentSet 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:runAdd 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>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);
}
}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/mcpAtmosphere 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.
Atmosphere Alternatives — Similar Coding Agents Servers
Looking for alternatives to Atmosphere? Here are other popular coding agents servers you can use with Claude, Cursor, and VS Code.
Dify
★ 142.2kProduction-ready platform for agentic workflow development.
Ruflo
★ 54.0k🌊 The leading agent orchestration platform for Claude. Deploy intelligent multi-agent swarms, coordinate autonomous workflows, and build conversational AI systems. Features enterprise-grade architecture, self-learning swarm intelligence, RAG integrat
Goose
★ 45.7kan open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM
Antigravity Awesome Skills
★ 38.3kInstallable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.
AgentScope
★ 25.5kBuild and run agents you can see, understand and trust.
Serena
★ 24.5kA coding agent toolkit that provides IDE-like semantic code retrieval and editing tools, enabling LLMs to efficiently navigate and modify codebases using symbol-level operations instead of basic file reading and string replacements.
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.
Set Up Atmosphere in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.