YH

yuna0x0/hackmd-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

68 stars 16 forks Качество 77 Тренд 4MIT

yuna0x0/hackmd-mcp - кандидат на сервер MCP, импортированный из https://github.com/yuna0x0/hackmd-mcp.

Обзор

yuna0x0/hackmd-mcp - кандидат на сервер MCP, импортированный из https://github.com/yuna0x0/hackmd-mcp.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), который взаимодействует с API HackMD, позволяя клиентам LLM получать доступ и взаимодействовать с заметками HackMD, командами, профилями пользователей и данными истории.

Особенности

Получить информацию о профиле пользователя Создавать, читать, обновлять и удалять заметки Управлять заметками команды и сотрудничать с членами команды Доступ к истории чтения Список и управление командами -Двойная транспортная поддержка: Как HTTP, так и STDIO Развертывание облака готово: Поддержка Smithery и других платформ

Требования

Node.js 18+

##Местная установка (STDIO Transport)

1.Добавьте этот сервер к своему mcp.json / claude_desktop_config.json:

Вы также можете необязательно установить переменную среды HACKMD_API_URL, если вам нужно использовать другую конечную точку API HackMD.

2 Перезагрузите клиент MCP (например, Claude Desktop) 3. Используйте инструменты для взаимодействия с HackMD

Развертывание сервера (HTTP Transport)

Самостоятельный хостинг

Следуйте инструкциям по локальному развитию, чтобы настроить проект локально, а затем запустить:

Это запустит сервер на порту 8081 по умолчанию. Вы можете изменить порт, установив переменную среды PORT.

###Облачное развертывание

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

HackMD MCP Server

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.

Features

  • Get user profile information
  • Create, read, update, and delete notes
  • Manage team notes and collaborate with team members
  • Access reading history
  • List and manage teams
  • Dual transport support: Both HTTP and STDIO transports
  • Cloud deployment ready: Support Smithery and other platforms

Requirements

  • Node.js 18+

Local Installation (STDIO Transport)

  1. Add this server to your mcp.json / claude_desktop_config.json:
{
  "mcpServers": {
    "hackmd": {
      "command": "npx",
      "args": ["-y", "hackmd-mcp"],
      "env": {
        "HACKMD_API_TOKEN": "your_api_token"
      }
    }
  }
}

You may also optionally set the HACKMD_API_URL environment variable if you need to use a different HackMD API endpoint.

  1. Restart your MCP client (e.g., Claude Desktop)
  2. Use the tools to interact with HackMD

Server Deployment (HTTP Transport)

Self-Hosting

Follow the Local Development instructions to set up the project locally, then run:

pnpm run start:http

This will start the server on port 8081 by default. You can change the port by setting the PORT environment variable.

Cloud Deployment

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.

Configuration

Environment Variables (STDIO Transport and HTTP Transport server where host provides the config)

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.

HTTP Headers (HTTP Transport where user provides the config)

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)
Открыть полный README на GitHub

Установка

npx -y hackmd-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "hackmd": { "command": "npx", "args": ["-y", "hackmd-mcp"], "env": { "HACKMD_API_TOKEN": "your_api_token" } } } }