PlugWiki
spartan logo

Spartan UI MCP Server: Setup for Claude, Cursor and Other Apps

OfficialLocal
Getnpm@spartan-ng/mcpspartan-ng/spartan

Lets your assistant look up Spartan Angular UI documentation, components and ready-made blocks.

This is the server the Spartan project publishes for its Angular UI library. It runs on your computer and fetches documentation, components and blocks from the public spartan.ng site, so your assistant works from current pages.

It needs no account or key. It keeps an on-disk cache of what it fetched.

Good for

  • Angular developers building with Spartan UI
  • Teams who want an assistant to use current component APIs
  • Anyone checking what a component depends on or how accessible it is

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install spartan MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the spartan MCP server to Claude Code. Run this command:
    
    claude mcp add spartan -- npx -y @spartan-ng/mcp
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

Built from the package data we hold. Not yet tested by us.

Tools

  • Lists Spartan UI components

    Returns the known components with links to their documentation.

    Try: “What Spartan components are there?”

    Network · spartan_components_list

  • Reads a component's documentation

    Fetches the page for one component and can return either its structured API (Brain and Helm parts) or its code blocks.

    Try: “Show the API of the accordion component.”

    Network · spartan_components_get

  • Shows what a component depends on

    Lists the npm packages, Angular CDK parts, other components and imports a component needs.

    Try: “What does the dialog component depend on?”

    Network · spartan_components_dependencies

  • Shows a component's accessibility features

    Reports ARIA, keyboard, screen reader and WCAG details of a component.

    Try: “How accessible is the dialog component?”

    Network · spartan_accessibility_check

  • Lists ready-made UI blocks

    Returns the known blocks, such as sidebar, login and calendar patterns.

    Try: “What blocks does Spartan have?”

    Network · spartan_blocks_list

  • Reads a block's page

    Fetches one block as HTML or plain text.

    Try: “Show me the sidebar block as text.”

    Network · spartan_blocks_get

  • Shows what a block depends on

    Lists the components and packages a block uses.

    Try: “What does the login block need?”

    Network · spartan_blocks_dependencies

  • Reads a documentation topic

    Fetches a Spartan docs topic such as installation, theming or CLI, and can pull out just the code, headings or links.

    Try: “Show me the headings in the CLI docs.”

    Network · spartan_docs_get

  • Lists topics, components and blocks

    Returns the names of all topics, components and blocks, to help the assistant choose.

    Try: “What can I ask about in Spartan?”

    Read · spartan_meta

  • Checks the Spartan docs site

    Tests whether the docs and component pages are reachable.

    Try: “Is the Spartan docs site up?”

    Network · spartan_health_check

  • Explains the Spartan health check

    Returns the instructions for the Spartan CLI health check.

    Try: “How do I run the Spartan health check?”

    Read · spartan_health_instructions

  • Builds the health check command

    Creates the exact command for the Spartan health check, for ng or nx.

    Try: “Give me the health check command for nx.”

    Read · spartan_health_command

Read from the source code

Permissions

low risk · 1 thing to watch

Low risk

It reads public pages from spartan.ng and keeps a cache on your computer. The only things it changes are that cache, which it can clear and rebuild.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • Cache tools can delete the local cache

    One tool clears the cache folder under your home cache directory and another rebuilds it. It only touches its own cache. github.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Talks tospartan.ng
Sign-in and keysNo credentials are used.
Scopes
  • None, no sign-in

Questions

Is the Spartan MCP server official?

Yes. The README calls it the official MCP server for Spartan UI, and it ships from the spartan-ng/spartan repository.

Does it need an API key?

No. It fetches public pages from spartan.ng.

Does it send my code anywhere?

No. It only fetches public documentation pages and stores a cache on your computer.

Where does it keep its cache?

In your user cache folder, by default ~/.cache/spartan-mcp. The SPARTAN_MCP_CACHE_DIR setting changes that.

Can it use an older Spartan version?

Yes. Cached data is stored per version, and tools take a version option or you can switch the cached version.

Information

updated Nov 2, 2026

Publisher
Official
Package
@spartan-ng/mcp
Registry
npm
Transport
stdio
Auth
None
Version
1.9.0
License
MIT
Last commit
Oct 30, 2026
Open issues
66

WebsiteGitHubnpmChangelogIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 3
  1. README.md · github.com
  2. mcp · npmjs.com
  3. server.ts · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.