| Crates.io | mq-mcp |
| lib.rs | mq-mcp |
| version | 0.1.4 |
| created_at | 2026-01-03 02:02:29.157808+00 |
| updated_at | 2026-01-03 02:02:29.157808+00 |
| description | Markdown Query - MCP server implementation |
| homepage | https://mqlang.org/ |
| repository | https://github.com/harehare/mq |
| max_upload_size | |
| id | 2019464 |
| size | 91,912 |
Model Context Protocol (MCP) server implementation for mq. This crate provides an MCP server that allows AI assistants to process Markdown and HTML content using mq's query language.
You can install mq-mcp using the installation script:
curl -fsSL https://raw.githubusercontent.com/harehare/mq-mcp/main/bin/install.sh | bash
Or clone this repository and run the install script:
git clone https://github.com/harehare/mq-mcp.git
cd mq-mcp
./bin/install.sh
The script will:
mq binary to ~/.mq/bin~/.mq/bin to your PATH (if not already present)After installation, restart your terminal or run:
source ~/.zshrc # or ~/.bashrc for bash users
The server implements four MCP tools:
html_to_markdown: Converts HTML to Markdown and executes mq queriesextract_markdown: Executes mq queries on Markdown contentavailable_functions: Returns available functions for mq queriesavailable_selectors: Returns available selectors for mq querieshtml (string): HTML content to processquery (optional string): mq query to executemarkdown (string): Markdown content to processquery (string): mq query to executeNo parameters. Returns JSON with function names, descriptions, parameters, and example queries.
No parameters. Returns JSON with selector names, descriptions, and parameters.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mq-mcp": {
"command": "/Users/YOUR_USERNAME/.mq/bin/mq-mcp",
"args": []
}
}
}
Or simply use mq-mcp if ~/.mq/bin is in your PATH:
{
"mcpServers": {
"mq-mcp": {
"command": "mq-mcp",
"args": []
}
}
}
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"mq-mcp": {
"command": "/Users/YOUR_USERNAME/.mq/bin/mq",
"args": ["mcp"]
}
}
}
Or simply use mq if ~/.mq/bin is in your PATH:
{
"mcpServers": {
"mq-mcp": {
"command": "mq",
"args": ["mcp"]
}
}
}
Add to .vscode/settings.json:
{
"mcp": {
"servers": {
"mq-mcp": {
"type": "stdio",
"command": "mq-mcp",
"args": []
}
}
}
}
Add to .vscode/settings.json:
{
"mcp": {
"servers": {
"mq-mcp": {
"type": "stdio",
"command": "mq",
"args": ["mcp"]
}
}
}
}
This project is licensed under the MIT License