Developers

SDKs

Build with the Swarms API in any language. Official, typed clients for Python, TypeScript, Go, Java, and C#, a Model Context Protocol server for Claude Desktop and Cursor that you can run locally or connect to hosted, the Swarms Marketplace MCP server, and the Swarms and S2A APIs you can call directly.

10/10

Client libraries

5

Python

swarms-client

Idiomatic, type-hinted, async-friendly client for Python 3.9 and later.

pip
pip install swarms-client

TypeScript

swarms-ts

Typed, Stainless-generated client. Runs in Node, Deno, Bun, and the browser.

npm
npm install swarms-ts

Go

swarms-client-go

Single-import, zero-dependency client for Go 1.21 and later.

go
go get github.com/The-Swarm-Corporation/swarms-client-go

Java

swarms-java

JVM client compatible with Java 17+, Kotlin, and Android.

Maven and Gradle install instructions in the repository.

C# / .NET

swarms-csharp

Async .NET client compatible with .NET 6 and later.

NuGet install instructions in the repository.

Model Context Protocol

3

MCP Server

swarms-ts-mcp

Model Context Protocol server. Plug Swarms into Claude Desktop, Cursor, and any other MCP-compatible client.

npx
npx -y swarms-ts-mcp

Hosted MCP Server

mcp.swarms.world

Hosted, remote MCP server. Connect over Streamable HTTP with your API key in the x-api-key header, nothing to install.

url
https://mcp.swarms.world/mcp

Marketplace MCP Server

swarms.world/mcp

Remote MCP server for the Swarms Marketplace of shared agents, prompts and tools. Connect any MCP client and send your Swarms API key as a Bearer token.

url
https://swarms.world/mcp

APIs

2
api

Swarms API

api.swarms.world

The REST API every SDK and MCP server wraps. Run agents, swarms and reasoning agents over HTTP with your key in the x-api-key header.

url
https://api.swarms.world
s2a

S2A API

sas.swarms.world

Serverless hosting for agents and MCP servers. Deploy scale-to-zero containers behind a stable URL and call the API directly.

url
https://sas.swarms.world