SwiftPieces MCP Server
Lets coding agents search and install real SwiftUI components into your iOS app.
SwiftPieces is a Developer Tools MCP (Model Context Protocol) server: Lets coding agents search and install real SwiftUI components into your iOS app. It is MIT + Commons Clause-licensed and available as a hosted endpoint, so it works with no local install. It exposes 6 tools including search_pieces, search_blocks, get_piece, install_piece. Listed on MCP Collection since October 2026.
About SwiftPieces
The SwiftPieces MCP server connects Claude Code, Cursor or any MCP client to SwiftPieces, a free library of animated SwiftUI components for iOS. Your agent can search the library, read a component's full source and install it as a single Swift file, so it adds the real component instead of inventing a lookalike. It also serves a Liquid Glass guide with verified iOS 26 API names. Public, no account, no API key.
Tools: search_pieces, search_blocks, get_piece, install_piece, list_categories, get_liquid_glass_guide
SwiftPieces tools (6)
Read from the live server on Oct 30, 2026. These are the tools your AI assistant can call once connected.
search_pieces- Search the free SwiftPieces registry by keyword, optionally filtered by category or minimum iOS version.
search_blocks- Search SwiftPieces patterns, also called blocks (whole sections of a screen such as a chat thread, a prompt composer, a tab bar, a settings group, a form, a sheet, sign in or checkout), by keyword, optionally by category. Every pattern is i
get_piece- Return a free piece's or free block's full source, shaders, metadata and docs URL. A block lists the pieces it is built from in registryDependencies.
install_piece- Return the files to write (path + content) so the agent can install a piece or block into an Xcode 16 synchronized folder, plus the equivalent CLI command. For a block, also install each name in registryDependencies (the pieces it is built
list_categories- List free piece categories and pattern categories with counts, and links to the SwiftPieces Pro library (screens, patterns, flows and app templates).
get_liquid_glass_guide- The rules for correct Liquid Glass adoption with verified iOS 26 API names.
How to connect SwiftPieces to Claude, Cursor or VS Code
SwiftPieces runs as a hosted remote MCP server at https://swiftpieces.com/api/mcp. Add that URL to your MCP client's config (Claude Code, Cursor, Windsurf or VS Code) and the tools appear immediately, no install required.
{
"mcpServers": {
"swiftpieces": {
"url": "https://swiftpieces.com/api/mcp"
}
}
}
Claude Code: claude mcp add --transport http swiftpieces https://swiftpieces.com/api/mcp. Servers that require OAuth or an API key will prompt on first use.
SwiftPieces FAQ
What is SwiftPieces?
SwiftPieces is a Model Context Protocol (MCP) server in the Developer Tools category. Lets coding agents search and install real SwiftUI components into your iOS app. MCP servers expose tools that AI assistants like Claude can call during a conversation.
How do I use SwiftPieces with Claude or Cursor?
SwiftPieces runs as a hosted remote MCP server at https://swiftpieces.com/api/mcp. Add that URL to your MCP client's config (Claude Code, Cursor, Windsurf or VS Code) and the tools appear immediately, no install required.
Is SwiftPieces free to use?
SwiftPieces is published under the MIT + Commons Clause license, so the software itself is free to run. Hosted or API-backed servers may have their own usage tiers; check the project homepage.
What tools does SwiftPieces provide?
SwiftPieces exposes 6 MCP tools: search_pieces, search_blocks, get_piece, install_piece, list_categories, get_liquid_glass_guide. This list is read from the live server (last verified Oct 30, 2026).
Is the SwiftPieces MCP server online?
Yes. MCP Collection checks the endpoint every day; it last answered on Oct 30, 2026.
Where is the source code for SwiftPieces?
The source is at github.com/Saivion/SwiftPieces.