MCP server enabling AI clients to manage HackMD notes, teams, user profiles, and history via HackMD API.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We ran the install command below but it didn't respond within our test window โ this can mean a slow first-time install rather than a real problem.
npx -y @modelcontextprotocol/inspectorNo response to initialize.
This is an experimental automated check and can have false negatives โ missing environment variables, a slow cold install, etc. It doesnโt necessarily mean somethingโs wrong. Last checked 1mo ago.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Hackmd MCP.
get_user_infoGet information about the authenticated user
list_teamsList all teams accessible to the user
get_historyGet user's reading history
list_team_notesList all notes in a team
create_team_noteCreate a new note in a team
update_team_noteUpdate an existing note in a team
A Model Context Protocol (MCP) server that interfaces with the HackMD API, allowing LLM clients to access and interact with HackMD notes, teams, user profiles, and history data.
mcp.json / claude_desktop_config.json:You may also optionally set the HACKMD_API_URL environment variable if you need to use a different HackMD API endpoint.
Follow the Local Development instructions to set up the project locally, then run:
This will start the server on port 8081 by default. You can change the port by setting the PORT environment variable.
You can deploy this MCP server to any cloud platform that supports Node.js server applications.
You can also deploy via MCP platforms like Smithery.
When using the STDIO transport or hosting the HTTP transport server, you can pass configuration via environment variables:
HACKMD_API_TOKEN: HackMD API Token (Required for all operations)HACKMD_API_URL: (Optional) HackMD API URL (Defaults to https://api.hackmd.io/v1)Environment variables applied only for the HTTP transport server:
ALLOWED_HACKMD_API_URLS: (Optional) A comma-separated list of allowed HackMD API URLs. The server will reject requests if the provide HackMD API URL is not in this list. If not set, only the default URL (https://api.hackmd.io/v1) is allowed.[!CAUTION] If you are hosting the HTTP transport server with token pre-configured, you should protect your endpoint and implement authentication before allowing users to access it. Otherwise, anyone can access your MCP server while using your HackMD token.
When using the HTTP transport, user can pass configuration via HTTP headers:
Hackmd-Api-Token: HackMD API Token (Required for all operations)Hackmd-Api-Url: (Optional) HackMD API URL (Defaults to https://api.hackmd.io/v1)If the user provides the token in the header, while the server also has HACKMD_API_TOKEN set, the header value will take precedence.
To get an API token, follow these steps:
.env file or environment variables.This project uses pnpm as its package manager.
Clone the repository and install dependencies:
.env file by copying the example:.env file and add your HackMD API token:You can use the MCP Inspector to test and debug the HackMD MCP server:
Then open your browser to the provided URL (usually http://localhost:6274) to access the MCP Inspector interface. From there, you can:
This is particularly useful for testing your setup before connecting it to MCP clients like Claude Desktop.
Pull from GitHub Container Registry:
Docker build (Local Development):
Docker multi-platform build (Local Development):
To create an MCP Bundle for this server, run:
This MCP server accepts your HackMD API token in the .env file, environment variable or HTTP header. Keep this information secure and never commit it to version control.
This project is licensed under the MIT License - see the LICENSE file for details.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/yuna0x0-hackmd-mcp)<a href="https://allmcps.com/mcp/yuna0x0-hackmd-mcp"><img src="https://allmcps.com/api/badge/yuna0x0-hackmd-mcp?style=directory" alt="Hackmd MCP on AllMCPs" /></a>