MCP Hub
Back to servers

mcp-server

A specialized MCP server for Macroforge that facilitates documentation retrieval, macro expansion, and TypeScript code validation for @derive decorators.

Tools
5
Updated
Jan 5, 2026
Validated
Jan 11, 2026

@macroforge/mcp-server

MCP server for Macroforge documentation and code analysis

npm version

Overview

@macroforge/mcp-server

Macroforge MCP (Model Context Protocol) Server

This module provides the main entry point for the Macroforge MCP server, which enables AI assistants and other MCP clients to access Macroforge documentation, validate code with @derive decorators, and expand macros.

The server communicates over stdio transport and exposes the following tools:

  • list-sections - List available documentation sections
  • get-documentation - Retrieve documentation content
  • macroforge-autofixer - Validate TypeScript code with @derive decorators
  • expand-code - Expand Macroforge macros and show generated code
  • get-macro-info - Get documentation for macros and decorators

@example

# Run the server directly
npx @macroforge/mcp-server

# Or configure in your MCP client settings
{
"mcpServers": {
"macroforge": {
"command": "npx",
"args": ["@macroforge/mcp-server"]
}
}
}

Installation

npm install @macroforge/mcp-server

Examples

# Run the server directly
npx @macroforge/mcp-server
# Or configure in your MCP client settings
{
"mcpServers": {
"macroforge": {
"command": "npx",
"args": ["@macroforge/mcp-server"]
}
}
}

Documentation

See the full documentation on the Macroforge website.

License

MIT

Reviews

No reviews yet

Sign in to write a review