Skip to main content
Glama

Spec Forge MCP

Minimal NestJS MCP server for extracting tables from documents into one JSON file.

Local Setup

Install dependencies and build the server:

npm install
npm run build

Create .env from .env.example and add your OpenRouter key:

AI_API_KEY=your-openrouter-api-key
AI_BASE_URL=https://openrouter.ai/api/v1
AI_MAX_CHUNK_CHARACTERS=40000
DEFAULT_TABLE_OUTPUT_PATH=output/document-tables.json
HTTP_HOST=127.0.0.1
HTTP_PORT=3000
HTTP_ALLOWED_ORIGIN=*

The document table tool currently uses this hardcoded OpenRouter model:

anthropic/claude-3-haiku

Related MCP server: MCP_Tools

Run HTTP MCP

Start the local HTTP MCP server:

npm run start:http

The MCP endpoint will be:

http://127.0.0.1:3000/mcp

Health check:

curl http://127.0.0.1:3000/health

Connect Claude Desktop

Claude Desktop may not connect directly to local HTTP MCP URLs from claude_desktop_config.json. Use mcp-remote as the bridge: Claude Desktop talks stdio to mcp-remote, and mcp-remote talks HTTP to this server.

Keep this server running with:

npm run start:http

Then open Claude Desktop:

Settings -> Developer -> Edit Config

On macOS, the config file is usually:

~/Library/Application Support/Claude/claude_desktop_config.json

Add this server under mcpServers:

{
  "mcpServers": {
    "spec-forge-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://127.0.0.1:3000/mcp",
        "--allow-http",
        "--transport",
        "http-first"
      ]
    }
  }
}

If your config already has other MCP servers, only add the spec-forge-mcp block inside the existing mcpServers object.

Fully quit and reopen Claude Desktop. After restart, Claude should show the extract_document_tables tool.

Direct HTTP Clients

Clients that support Streamable HTTP MCP can connect directly to:

http://127.0.0.1:3000/mcp

Example Prompt

Use extract_document_tables on /Users/faisal/Documents/example.pdf and save the JSON to /Users/faisal/Documents/tables.json

The tool will always generate one JSON file.

Docker

Build the image locally:

docker build -t spec-forge-mcp .

Run the container (loads variables from .env):

docker run --env-file .env -p 3000:3000 --rm spec-forge-mcp

Or use Docker Compose:

docker compose up --build

Make sure AI_API_KEY (and any other AI_* vars) are present in your .env before starting.

Available Tools

1 tool
extract_document_tablesExtract Document TablesA

Convert a PDF, DOCX, text, markdown, CSV, JSON, or HTML document into table data and write one JSON output file. The source can be a local file path or an HTTP/HTTPS URL.

Inputs: sourcePath (required), documentId, outputPath, maxChunkCharacters. Returns: outputPath, sourcePath, tableCount

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion between tools. The single tool has a clearly defined purpose and inputs, making its function unambiguous.

    Naming Consistency5/5

    The tool name 'extract_document_tables' follows a clear verb_noun pattern and is descriptive. With only one tool, there is no inconsistency to penalize.

    Tool Count2/5

    A single tool is too few for the apparent scope of a server named 'Spec Forge MCP'. The tool, while useful, is narrowly focused and does not justify a server-level presence on its own.

    Completeness1/5

    The server provides only one operation with no surrounding workflow support. There is no way to manage, list, or further process the extracted data, making the surface severely incomplete for any broader purpose.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that exposes structured Functional Requirements Documents (FRDs) to enable AI assistants like GitHub Copilot to automatically generate complete NestJS boilerplate architectures. It orchestrates the multi-phase creation of production-ready APIs including core CRUD, database integration, JWT authentication, and unit testing.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that gives your Claude, Cline, or Cursor session the ability to extract text, tables, and metadata from any PDF URL — including scanned PDFs via OCR.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that extracts clean text, tables, and structured data from documents, images, code, and audio files, supporting 97 formats with OCR, transcription, and code intelligence.
      MIT