
Spartan UI MCP Server: Setup for Claude, Cursor and Other Apps
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.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install spartan MCP
Claude Code
- 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
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_listReads 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_getShows 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_dependenciesShows 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_checkLists ready-made UI blocks
Returns the known blocks, such as sidebar, login and calendar patterns.
Try: “What blocks does Spartan have?”
Network ·
spartan_blocks_listReads a block's page
Fetches one block as HTML or plain text.
Try: “Show me the sidebar block as text.”
Network ·
spartan_blocks_getShows what a block depends on
Lists the components and packages a block uses.
Try: “What does the login block need?”
Network ·
spartan_blocks_dependenciesReads 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_getLists 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_metaChecks the Spartan docs site
Tests whether the docs and component pages are reachable.
Try: “Is the Spartan docs site up?”
Network ·
spartan_health_checkExplains 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_instructionsBuilds 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_commandShows the local cache status
Reports the current cache version and its statistics.
Try: “What is in the Spartan cache?”
Files ·
spartan_cache_statusClears the local cache
Deletes the current cached version, or all of them, from your computer.
Try: “Clear the Spartan cache.”
Delete ·
spartan_cache_clearRebuilds the cache from the live site
Downloads the documentation again and refreshes the local cache.
Try: “Rebuild the Spartan cache.”
Write ·
spartan_cache_rebuildSwitches the cached version
Makes another cached Spartan version the active one.
Try: “Switch to the cached older version.”
Write ·
spartan_cache_switch_versionLists cached versions
Shows the Spartan versions that are cached on your computer.
Try: “Which Spartan versions are cached?”
Files ·
spartan_cache_list_versions
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 to | spartan.ng |
|---|---|
| Sign-in and keys | No credentials are used. |
| Scopes |
|
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
Sources
Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.