Magic MCP vs Fedlex Connector

A side-by-side look at the Magic MCP and Fedlex Connector MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.

Magic MCP logoMagic MCPArchitecture & Design · Local subprocess (stdio)Create crafted UI components inspired by the best 21st.dev design engineers.53GoodAuth: api key requiredFedlex Connector logoFedlex ConnectorLegal · Remote HTTP/SSESearch Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.59GoodAuth: not declared

Verdict: choose Magic MCP for architecture & design work as a local process; choose Fedlex Connector for legal over a hosted endpoint. You can also run both side by side in one mcpServers block.

Which MCP server should you choose?

Magic MCP logoChoose Magic MCP when

  • You need dedicated capabilities in the Architecture & Design domain.
  • You prefer a local stdio subprocess transport.
  • Its auth model fits you: API key required.
  • You have the keys it needs: TWENTY_FIRST_API_KEY, API_KEY_21ST.
Explore Magic MCP

Fedlex Connector logoChoose Fedlex Connector when

  • You need dedicated capabilities in the Legal domain.
  • You prefer a remote HTTP/SSE transport.
  • You want tools like search_by_title, get_article, get_law_text.
Explore Fedlex Connector

Feature & specification comparison

Rows where the two servers differ are marked.

SpecMagic MCP logoMagic MCPFedlex Connector logoFedlex Connector
CategoryArchitecture & DesignLegal
Quality signal53/100 · Good59/100 · Good
Install commandConfirmedConfirmed
TransportLocal subprocess (stdio)Remote HTTP/SSE
AuthAPI key requiredNot declared
PricingPaid serviceNot declared
Required env varsTWENTY_FIRST_API_KEYAPI_KEY_21STNone listed
Verified ownerCommunity listingCommunity listing
GitHub stars6,2097
Directory activity 16 views 1 installs 0 upvotes 2 views 0 installs 0 upvotes
ToolsNot listed4

Tools & capabilities

Magic MCP tools

No tool names declared yet. Check the project README from the listing page.

Fedlex Connector tools 4

  • search_by_titleSearch Swiss federal legislation titles in the Classified Compilation (RS/SR) on Fedlex. Use to find the RS number of a law when you know its name but not its number. Searches titles only, not article content. Returns only acts currently in force.
  • get_articleRetrieve a single article when you already know the EXACT article number (e.g. from a cross-reference). Do NOT call this tool repeatedly to search for provisions — use get_law_text instead to fetch the full act or a section and locate relevant articles in the text.
  • get_law_textRetrieve the official consolidated text of a Swiss federal act (or a specific title/chapter) directly from Fedlex (fedlex.admin.ch). This is the PRIMARY tool for answering Swiss law questions — always start here. Fetch the full act or a specific section, then locate relevant provisions in the returned text. Prefer this over get_article unless you already know the exact article number.
  • list_amendmentsList consolidation version dates for a Swiss federal act. Returns the dates each consolidated version took effect.

Ready-to-paste client configs

Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.

Magic MCP

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "21st-dev-magic-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@21st-dev/cli@latest"
      ],
      "env": {
        "TWENTY_FIRST_API_KEY": "YOUR_TWENTY_FIRST_API_KEY_HERE",
        "API_KEY_21ST": "YOUR_API_KEY_21ST_HERE"
      }
    }
  }
}

Fedlex Connector

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "fedlex-connector": {
      "url": "https://mcp.fedlex-connector.ch"
    }
  }
}

Frequently asked questions

Magic MCP is categorized under Architecture & Design and uses a local stdio subprocess. Fedlex Connector belongs to Legal and uses a remote HTTP/SSE transport. Pick Magic MCP for architecture & design work and Fedlex Connector for legal.

Copy the mcpServers block from the config section on this page into your client's config (for example claude_desktop_config.json or ~/.cursor/mcp.json), then fully restart the client.

Magic MCP is listed as a paid service. Auth: api key required. Fedlex Connector has no declared pricing — check the project's own site. If a server needs environment variables such as API keys, define them under the env key in your client's MCP config.

Yes. MCP clients support multiple servers: add 21st-dev-magic-mcp and fedlex-connector as separate keys in the same mcpServers object, and your assistant will call tools from either one.

On AllMCPs, Magic MCP has a quality signal of 53/100 (Good) with 16 views, 1 installs and 6,209 GitHub stars. Fedlex Connector has 59/100 (Good) with 2 views, 0 installs and 7 GitHub stars.