Basic information
About Component MCP Server
# Component MCP Server
Component MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by hnegishi. Supported transport: stdio. Runtime: node. License: MIT. The repository has 1 GitHub stars. Source code is hosted on github.com. Related topics: component-mcp-server, mcp-server, repository-search.
Setup
{
"mcpServers": {
"component-mcp-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"node",
"./dist/index.js"
]
}
}
}
{
"mcpServers": {
"component-mcp-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"node",
"./dist/index.js"
]
}
}
}
{
"servers": {
"component-mcp-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"node",
"./dist/index.js"
]
}
}
}
Component MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"component-mcp-server": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector",
"node",
"./dist/index.js"
]
}
}
}
Component MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Component MCP Server?
Component MCP Server is an MCP server that searches for components in a local repository and retrieves component information (name, path, source code). It is designed for developers who want to integrate component discovery into AI assistants via the Model Context Protocol.
How to use Component MCP Server?
- Install dependencies:
npm install. 2. Create a.envfile withCOMPONENTS_PATHpointing to the repository’s components directory. 3. Build the server:npm run build. 4. Configure in VSCode withcommand: "node",args: ["./build/index.js"], and theCOMPONENTS_PATHenvironment variable.
Key features of Component MCP Server
- Searches components and returns their names and paths
- Retrieves the full source code of a specific component
- Built with TypeScript and the Model Context Protocol SDK
- Simple configuration via a single environment variable
Use cases of Component MCP Server
- Auto‑complete component names in an AI coding assistant
- Retrieve component source code for analysis or documentation
- Enable an AI agent to locate and inspect UI components in a project
Frequently asked questions
1 What are the dependencies and runtime requirements?
The server requires Node.js and npm. It uses TypeScript and the @modelcontextprotocol/sdk package.
2 Where does the component data live?
Components are read from a local repository directory specified in the COMPONENTS_PATH environment variable. No external database is used.
3 What tools does Component MCP Server expose?
It provides two tools: searchComponents (search by name, returns paths) and getComponentInfo (returns the component’s source code).
4 How do I configure Component MCP Server in VSCode?
Add a server entry with command: "node", args: ["./build/index.js"], and an env object containing COMPONENTS_PATH set to your components directory.
5 What transport or authentication is used?
The server uses standard input/output (stdio) transport as configured in the VSCode example. No authentication is mentioned.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In