A simple MCP (Model Context Protocol) server that suggests Drupal tools from the _data/projects folder. This server provides semantic search and discovery of Drupal development tools, utilities, and projects.
Features
- list_tools: List all available Drupal tools/projects with optional filtering
- search_tools: Search for tools using semantic matching
- get_tool: Get detailed information about a specific tool
Using npx
Add the following to your mcpServers json key:
{
"mcpServers": {
"drupaltools": {
"type": "stdio",
"command": "npx",
"args": ["@drupaltools/mcp@latest"]
}
}
}
Local install with npm
npm install -g @drupaltools/mcp
{
"mcpServers": {
"drupaltools": {
"type": "stdio",
"command": "drupaltools-mcp"
}
}
}
Available Tools
1. list_tools
Lists all available Drupal tools/projects.
Parameters:
category(optional): Filter by category (e.g., 'testing', 'cli', 'deployment')limit(optional, default: 50): Maximum number of tools to return
2. search_tools
Search for tools using a query string. Uses smart scoring:
- Title matches: 100 points
- Category matches: 50 points
- Tag matches: 30 points
- Description matches: 20 points
- Homepage/source matches: 10 points
Parameters:
query(required): Search querylimit(optional, default: 10): Maximum results to return
3. get_tool
Get detailed information about a specific tool by ID or name.
Parameters:
tool_id(required): The tool ID (filename without .yml) or tool name
Example Usage and prompts
Show me 5 Drupal tools for testing Drupal sites
Search for Docker-based Drupal development tools
Tell me about ddev tool
List all CLI tools for Drupal that are deprecated
Development
The server is built using the JavaScript/TypeScript MCP SDK (@modelcontextprotocol/sdk v1.24.3) with ES modules.
Testing
npx @modelcontextprotocol/inspector drupaltools-mcp
This opens a web UI where you can:
- See all available tools and their schemas
- Test each tool with custom parameters
- View real-time responses
- Debug issues