S
Simple Hackmd MCP
作者 @stanley2058
MCP server by stanley2058
创建于 10/27/2025
更新于 about 2 months ago
README
Repository documentation and setup instructions
hackmd-mcp
A Model Context Protocol (MCP) server for interacting with HackMD API.
Features
- Get workspace notes (personal or team)
- Get single note details
- Create/update notes
- Delete notes
Prerequisites
- HackMD API key (obtain from HackMD settings)
Installation
Using npx (Recommended)
No installation required! Run directly with:
npx -y @stanley2058/hackmd-mcp
For Development
npm install
# or
bun install
Configuration
Environment Variables
Required:
HACKMD_API_KEY: Your HackMD API key (obtain from HackMD settings)
Optional:
PORT: HTTP server port (default:3000, only used in HTTP mode)
Usage
This MCP server supports two modes: stdio and http.
stdio Mode (Default)
Run the server in stdio mode for direct MCP client integration:
Using npx:
HACKMD_API_KEY=your_api_key npx -y @stanley2058/hackmd-mcp
Or from source:
HACKMD_API_KEY=your_api_key node dist/index.js
# or
HACKMD_API_KEY=your_api_key bun run index.ts
HTTP Mode
Run the server in HTTP mode to expose an HTTP endpoint:
Using npx:
HACKMD_API_KEY=your_api_key npx -y @stanley2058/hackmd-mcp --http
Or from source:
HACKMD_API_KEY=your_api_key node dist/index.js --http
# or
HACKMD_API_KEY=your_api_key bun run index.ts --http
The server will start on http://localhost:3000/mcp by default. Change the port using the PORT environment variable:
HACKMD_API_KEY=your_api_key PORT=8080 npx -y @stanley2058/hackmd-mcp --http
Building
bun run build
License
MIT
快速设置
此服务器的安装指南
安装包 (如果需要)
npx @modelcontextprotocol/server-simple-hackmd-mcp
Cursor 配置 (mcp.json)
{
"mcpServers": {
"stanley2058-simple-hackmd-mcp": {
"command": "npx",
"args": [
"stanley2058-simple-hackmd-mcp"
]
}
}
}