Elemm
HomeDocsFAQ
Star on GitHub
HomeDocsFAQ
Star on GitHub
Docs
Getting StartedWhat is Elemm?Core InstallationMCP Client SetupDocker Deployment
PlatformDashboard & ObservabilityConfiguration Reference
ProtocolThe Discovery ProtocolThe 9 Core ToolsSequence Engine & Data PipingResponse Hygiene
GatewayMulti-Protocol SupportSecurity (Guardian)Vault — AuthenticationProduction & VPS SecurityCLI Reference
DeveloperBuilding Landmark ServersExposing Landmark ServersSmartRepair & Error CodesPydantic & Smart UnboxingDeclarative YAML Configuration

Exposing Landmark Servers

Bind landmark servers to FastAPI, STDIO, or SSE interfaces.

Exposing Your Server

Once your landmark actions are defined, you can expose them to agents using different protocols and gateways.

Option A: FastAPI (Web API via HTTP)

Perfect for microservices, cloud deployments, or multi-client networks:

python
import uvicorn
from fastapi import FastAPI
from elemm import AIProtocolManager
from elemm.gateways.fastapi import FastAPIGateway

app = FastAPI()
manager = AIProtocolManager()

@manager.landmark("compute:toggle_power")
async def toggle_power(instance_id: str, state: str):
    """Control the power state of a virtual machine."""
    return {"status": "success", "instance": instance_id, "new_state": state}

gateway = FastAPIGateway(manager)
gateway.bind_to_app(app)

if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port=8000)

This automatically provides the standardized endpoints:

  • GET /.well-known/elemm-manifest.md — The manifest
  • GET /.well-known/elemm-inspect.md — Landmark inspection
  • POST /.well-known/elemm/execute — Action execution
  • GET /.well-known/elemm/search — Landmark search

Option B: Standalone MCP (Local via STDIO)

Perfect for direct integration with local AI agents (e.g., Claude Desktop):

python
from elemm import ElemmGateway

gateway = ElemmGateway(name="ComputeServer")

@gateway.action("compute:toggle_power")
async def toggle_power(instance_id: str, state: str):
    """Control the power state of a virtual machine."""
    return {"status": "success", "instance": instance_id, "new_state": state}

if __name__ == "__main__":
    gateway.run_mcp()

Option C: MCP Gateway (SSE Mode)

For web/remote integrations:

python
from elemm.gateways.mcp_server import MCPGateway

server = MCPGateway(manager, server_name="My-Landmark-Server")
server.run_sse(host="0.0.0.0", port=8005)
Elemm Logo

The Landmark Manifest. Exposing system interfaces natively to AI agents.

Framework

HomeAboutDocumentation

Community

GitHubDiscordPyPI Package

Legal

License: GPLv3© 2026 Marc Stöcker
elemm.dev — Infrastructure for the Agentic Web.