drupal-tools-mcp

This repository provides a TypeScript-based MCP server demonstrating core Model Context Protocol concepts with a simple notes system, including resource management, tool execution, and prompt generation for LLM summarization.

0
1

drupal-modules-mcp MCP Server

A Model Context Protocol server.

This is a TypeScript-based MCP server implementing a simple notes system, demonstrating core MCP concepts by providing resources, tools, and prompts.

Features

Resources

  • Lists and accesses notes via note:// URIs.
  • Each note has a title, content, and metadata.
  • Uses plain text mime type for content access.

Tools

  • create_note - Creates new text notes.
    • Requires title and content parameters.
    • Stores notes in server state.

Prompts

  • summarize_notes - Generates a summary of all stored notes.
    • Includes all note contents as embedded resources.
    • Returns structured prompt for LLM summarization.

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "drupal-modules-mcp": {
      "command": "/path/to/drupal-modules-mcp/build/index.js"
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector, available as a package script:

npm run inspector

The Inspector provides a URL to access debugging tools in your browser.

Repository

CL
Cleversoft-IT

Cleversoft-IT/drupal-tools-mcp

Created

February 7, 2025

Updated

February 7, 2025

Language

JavaScript

Category

Developer Tools