Sway MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sway MCPswitch to workspace 3"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sway MCP
A Model Context Protocol (MCP) server that exposes Sway window manager commands as native tools for Claude Code.
What it does
This server wraps swaymsg and exposes all Sway functionality as structured tools that Claude can use directly, just like the claude-in-chrome extension for the browser.
Tools available:
sway_command- Execute any swaymsg command with full flexibilitysway_get_tree- Get the complete window treesway_get_workspaces- List all workspacessway_get_outputs- List all displayssway_get_marks- Get all bookmarkssway_get_version- Get Sway versionsway_get_inputs- List input devicessway_get_config- Get config
Related MCP server: TmuxControlLib MCP Server
Building
npm install
npm run buildOr with Bun:
bun install
bun run buildRunning
npm startOr with Bun:
bun run startRegistration with Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"sway": {
"command": "node",
"args": ["/path/to/sway-mcp/dist/index.js"]
}
}
}Or with Bun:
{
"mcpServers": {
"sway": {
"command": "bun",
"args": ["/path/to/sway-mcp/dist/index.js"]
}
}
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kefimoto/sway-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server