Spec Forge MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Spec Forge MCPextract tables from report.pdf and save as tables.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 buildCreate .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-haikuRelated MCP server: Techtenstein PDF MCP
Run HTTP MCP
Start the local HTTP MCP server:
npm run start:httpThe MCP endpoint will be:
http://127.0.0.1:3000/mcpHealth check:
curl http://127.0.0.1:3000/healthConnect 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:httpThen open Claude Desktop:
Settings -> Developer -> Edit ConfigOn macOS, the config file is usually:
~/Library/Application Support/Claude/claude_desktop_config.jsonAdd 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/mcpExample Prompt
Use extract_document_tables on /Users/faisal/Documents/example.pdf and save the JSON to /Users/faisal/Documents/tables.jsonThe 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-mcpOr use Docker Compose:
docker compose up --buildMake sure AI_API_KEY (and any other AI_* vars) are present in your .env before starting.
Available Tools
1 toolextract_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.
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | No | Optional stable identifier for the document in the generated JSON. | |
| outputPath | No | Optional path for the single generated JSON file. | |
| sourcePath | Yes | Path to the source document on the local filesystem, or an HTTP/HTTPS URL (e.g. a raw GitHub link to a .md or .txt file). | |
| maxChunkCharacters | No | Optional maximum characters sent to the AI model per chunk. |
Output Schema
| Name | Required | Description |
|---|---|---|
| outputPath | Yes | |
| sourcePath | Yes | |
| tableCount | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must fully disclose behavior. It does state that the tool writes one JSON output file, making the side effect explicit. However, it omits details such as whether existing files are overwritten, whether directories are created, or what happens if no tables are found. The chunking behavior implied by the maxChunkCharacters parameter is also not explained, leaving some ambiguity in the tool's execution.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences long, with no filler. It front-loads the primary action ('Convert...'), then adds source flexibility. Every word contributes to understanding the tool's purpose and capabilities, making it an exemplary concise description.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the core purpose, input formats, and output behavior, and an output schema exists to explain return values. It lacks a note about chunking or AI model usage, which is relevant given the maxChunkCharacters parameter. However, for a tool with a clear scope and no siblings, it is largely complete and sufficient for an agent to select and invoke it.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already provides descriptions for all four parameters, giving a baseline of 3. The description adds value by explicitly listing the supported document formats (PDF, DOCX, text, markdown, CSV, JSON, HTML), which is more informative than the schema's example of .md and .txt. This enhances understanding of the sourcePath parameter beyond the schema text.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's function: converting a document into table data and writing a JSON output file. It enumerates supported input formats and source types, making the purpose specific and unambiguous. There are no sibling tools to conflict with, so the description successfully communicates what the tool does.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context on when to use the tool: when a document (of supported formats) needs to be converted to tabular JSON. It mentions both local file paths and URLs, giving concrete usage scenarios. Since there are no sibling tools, explicit alternatives are unnecessary, but the description could have hinted at intended use cases or limitations (e.g., not for images).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
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.
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.
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.
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Hosted MCP server: convert PDFs to clean, LLM-ready Markdown with tables, formulas and OCR.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Turn any PDF into structured JSON via AI + OCR: invoices, bank statements, contracts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA lightweight document parser MCP server that enables Claude to parse PDFs, Word, Excel, images (OCR), and other document formats with support for chunking and metadata extraction.2MIT
- AlicenseNot gradedqualityCmaintenanceMCP 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
- AlicenseNot gradedqualityBmaintenanceMCP 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
- AlicenseNot gradedqualityCmaintenanceA document processing MCP server that converts PDFs to structured formats and generates documents, with caching and RAG support.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/faisalkcmvp/spec-forge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server