DemoTool MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DemoTool MCP Server say hello to Fernando"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DemoTool MCP Server
A modular Model Context Protocol (MCP) server for the DemoTool project. This server provides custom tools that AI assistants in Cursor can use to better understand and interact with the codebase.
What is MCP?
Model Context Protocol (MCP) is an open protocol that allows AI assistants to securely interact with external data sources and tools. This server exposes project-specific tools that Cursor can use to enhance development workflows.
Related MCP server: Basic MCP Server
Project Structure
The server is organized into a modular architecture for easy maintenance and scalability:
mcp-server/
├── src/
│ ├── config/ # Server configuration
│ │ ├── server.config.ts
│ │ └── index.ts
│ ├── server/ # Server setup and request handlers
│ │ ├── setup.ts
│ │ └── index.ts
│ ├── tools/ # Tool implementations
│ │ ├── tool-registry.ts # Tool registry pattern
│ │ ├── hello-world.tool.ts # Example tool
│ │ └── index.ts
│ ├── types/ # TypeScript type definitions
│ │ ├── tool.types.ts
│ │ ├── server.types.ts
│ │ └── index.ts
│ └── index.ts # Main entry point
├── dist/ # Compiled JavaScript output
├── package.json
└── tsconfig.jsonAvailable Tools
This MCP server currently provides:
hello_world - Returns a friendly hello world message
Optional parameter:
name(string) - Name to greet, defaults to "World"
Installation
Install dependencies:
cd mcp-server
npm installBuild the server:
npm run buildConfiguration in Cursor
To integrate this MCP server with Cursor:
Method 1: Using Cursor Settings UI
Open Cursor Settings
Navigate to Features → MCP
Click + Add New MCP Server
Configure:
Name:
kids-daily-toolType:
stdioCommand:
node /home/fernando/code/kids-daily-tool/mcp-server/dist/index.js
Method 2: Manual Configuration (Advanced)
Edit Cursor's MCP configuration file directly:
Linux/Mac: ~/.config/cursor/mcp.json
Windows: %APPDATA%\Cursor\mcp.json
Add this configuration:
{
"mcpServers": {
"kids-daily-tool": {
"command": "node",
"args": ["/home/fernando/code/kids-daily-tool/mcp-server/dist/index.js"],
"env": {}
}
}
}Usage in Cursor
Once configured, you can use natural language prompts in Cursor Composer to invoke the tool:
"Say hello to me!"
"Use the hello_world tool"
"Call the hello_world MCP tool with name: Fernando"
Cursor will automatically detect when to use the MCP tool and execute it on your behalf. The tool will return a friendly greeting message.
Development
To modify the server:
Edit files in
src/Rebuild:
npm run buildRestart Cursor to pick up changes
Troubleshooting
Server not showing up in Cursor
Make sure you've built the server (
npm run build)Verify the path in your configuration is absolute
Restart Cursor after making configuration changes
Tool errors
Check the Cursor Developer Console for error messages
Verify file permissions on the project directory
Ensure Node.js is available in your PATH
Extending the Server
The modular architecture makes it easy to add new tools. Follow these steps:
1. Create a New Tool
Create a new file in src/tools/, e.g., my-new-tool.tool.ts:
import {
Tool,
ToolDefinition,
ToolArguments,
ToolResult,
} from "../types/index.js";
export class MyNewTool implements Tool {
getDefinition(): ToolDefinition {
return {
name: "my_new_tool",
description: "Description of what your tool does",
inputSchema: {
type: "object",
properties: {
param1: {
type: "string",
description: "Description of param1",
},
},
required: ["param1"],
},
};
}
async execute(args: ToolArguments): Promise<ToolResult> {
// Implement your tool logic here
const result = `Processing: ${args.param1}`;
return {
content: [
{
type: "text",
text: result,
},
],
};
}
}2. Register the Tool
Add your tool to src/tools/index.ts:
export * from "./my-new-tool.tool.js";
import { MyNewTool } from "./my-new-tool.tool.js";
export function getAllTools(): Tool[] {
return [
new HelloWorldTool(),
new MyNewTool(), // Add your tool here
];
}3. Rebuild and Test
npm run buildThat's it! The tool registry will automatically pick up your new tool.
Architecture Benefits
Modularity: Each tool is self-contained in its own file
Type Safety: Full TypeScript support with proper interfaces
Scalability: Easy to add new tools without modifying core logic
Maintainability: Clear separation of concerns
Testability: Individual tools can be tested in isolation
Security Notes
This server only provides read-only access to project information
It runs locally and doesn't send data to external services
Always review MCP server code before integrating it with your editor
Available Tools
7 toolsangular_component_standardsA
⚠️ REQUIRED TOOL: Must be called before creating or modifying any Angular component. Returns Angular component standards and best practices to ensure code quality and consistency. Can retrieve all standards or filter by specific category.
Inputs: category, listCategories.
angular_forms_standardsA
⚠️ REQUIRED TOOL: Must be called before creating or modifying forms. Returns Angular forms standards and best practices for reactive forms, FormBuilder usage, and form validation. Can retrieve all standards or filter by specific category.
Inputs: category, listCategories.
data_fetching_standardsA
⚠️ REQUIRED TOOL: Must be called before implementing data fetching or HTTP requests in Angular. Returns data fetching standards and best practices including rxResource, rxRequest, and HTTP patterns. Can retrieve all standards or filter by specific pattern.
Inputs: pattern, listPatterns.
design_system_available_componentsA
📚 Component Registry: Returns comprehensive documentation for all design system components. Use this tool to discover available components (button, card, input, modal, etc.) and learn their APIs, props, events, examples, and usage patterns. Can retrieve all components or filter by specific component name.
Inputs: component, listComponents.
design_system_standardsA
⚠️ REQUIRED TOOL: Must be called before implementing design system components. Returns design system standards and best practices for buttons, cards, inputs, modals, and other components. Can retrieve all standards or filter by specific component.
Inputs: component, listComponents.
modal_best_practicesB
⚠️ REQUIRED TOOL: Must be called before implementing modals or dialogs. Returns best practices for creating and managing modals/dialogs using DialogService, BaseDialogComponent, ds-modal components, and rxMethod patterns. Can retrieve all best practices or filter by specific category.
Inputs: category, listCategories.
models_standardsA
⚠️ REQUIRED TOOL: Must be called before creating or modifying models. Returns models standards and best practices for model development. Can retrieve all standards or filter by specific category.
Inputs: category, listCategories.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct Angular domain (components, data fetching, forms, models, modals, design system), so most selections are clear. There is mild overlap in the component cluster: design_system_standards explicitly covers modals while modal_best_practices is a separate tool, and design_system_available_components overlaps with design_system_standards.
Nearly all tools use snake_case with a <domain>_standards suffix (angular_component_standards, forms, models, design_system, data_fetching). The remaining two (design_system_available_components, modal_best_practices) deviate in suffix but stay readable and consistent in style.
Seven tools is well-scoped for a standards/reference server, with one tool per major Angular concern plus a component registry. No redundancy pushing the count up.
Covers the core Angular development concerns plus a component registry, giving solid coverage. Some common areas (routing, state management, testing, services/directives) are absent, but these are reasonable gaps for a standards-focused server.
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for Task Trellis that provides tools for AI coding agents to manage tasks, currently featuring a simple hello_world demonstration tool.1142 npm11GPL 3.0
- AlicenseNot gradedqualityDmaintenanceA minimal demonstration server showcasing MCP protocol capabilities including tools, resources, and prompts with basic examples like hello world functionality.MIT
- FlicenseNot gradedqualityDmaintenanceA demo MCP server with streamable HTTP transport and auto tool registry, enabling LLMs to connect with external data sources and tools.21-
- AlicenseNot gradedqualityDmaintenanceA minimal MCP server starter template with a simple hello-world tool and Docker support for building AI assistant tools.-