Skip to main content
Glama

@stencil/mcp

A Model Context Protocol server that gives AI coding agents accurate, version-aware knowledge of a StencilJS project.

Proof-of-concept for stenciljs/core#6518.

Why

AI agents frequently suggest non-idiomatic Stencil code — e.g. manually adding a window.addEventListener in componentWillLoad instead of using the built-in @Listen() decorator, or mutating a @Prop. This server exposes Stencil's real API surface and best practices to the agent so it can self-correct, and tells it which Stencil version the project is actually running.

Related MCP server: Context7 MCP

Tools

Tool

Purpose

detect_stencil_version

Resolves the version from node_modules/@stencil/core (authoritative) and the declared range in package.json.

get_decorator_reference

Signatures, idiomatic examples, and anti-patterns for @Component, @Prop, @State, @Watch, @Event, @Listen, @Method, @Element, @AttachInternals.

get_lifecycle_reference

The component lifecycle hooks and when each fires.

get_best_practices

Concrete "wrong vs right" rules so agents use built-in Stencil features.

All reference content is sourced from Stencil's own public runtime type declarations, so it matches the framework rather than guessing.

Usage

npm install && npm run build

Register with an MCP-capable client (Claude Desktop, Cursor, VS Code, etc.):

{
  "mcpServers": {
    "stencil": {
      "command": "npx",
      "args": ["-y", "@stencil/mcp"]
    }
  }
}

Develop

npm run build      # compile TypeScript
npm test           # unit tests (node:test)
node test/smoke.mjs # end-to-end MCP stdio test

License

MIT

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…

  • @latest documentation and code examples to 9000+ libraries for LLMs and AI code editors in a singl…

  • Get up-to-date, version-specific documentation and code examples from official sources directly in…

View all MCP Connectors

Latest Blog Posts

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/Arul1998/stencil-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server