@stanley2058/hackmd-mcp
v1.0.4
Published
A Model Context Protocol (MCP) server for interacting with HackMD API.
Readme
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-mcpFor Development
npm install
# or
bun installConfiguration
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-mcpOr from source:
HACKMD_API_KEY=your_api_key node dist/index.js
# or
HACKMD_API_KEY=your_api_key bun run index.tsHTTP 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 --httpOr from source:
HACKMD_API_KEY=your_api_key node dist/index.js --http
# or
HACKMD_API_KEY=your_api_key bun run index.ts --httpThe 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 --httpBuilding
bun run buildLicense
MIT
