mdgen-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., "@mdgen-mcplist my documents"
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.
mdgen-mcp
MCP server for mdgen — read and write your mdgen documents from Claude Desktop, Claude Code, Codex CLI, and other MCP clients, using your own account. The AI runs on your subscription; mdgen never pays for generation.
What it does
Exposes your saved mdgen documents (available to logged-in users) as MCP tools:
Tool | Description |
| List your documents (id, title, mode, updatedAt) |
| Get a document's full Markdown by id |
| Create a new document ( |
| Update a document (only provided fields change) |
| Delete a document by id |
Related MCP server: MCP-Google-Doc
Prerequisites
A mdgen account (sign in at https://mdgen.app).
A personal access token (PAT): issue one from mdgen while logged in (Menu → API tokens). Copy it — it is shown only once.
Environment variables
Variable | Required | Default | Description |
| ✅ | — | Your mdgen personal access token |
|
| mdgen API base URL (must include the version prefix) |
Client setup
Claude Desktop
claude_desktop_config.json:
{
"mcpServers": {
"mdgen": {
"command": "npx",
"args": ["-y", "mdgen-mcp"],
"env": {
"MDGEN_TOKEN": "<your token>"
}
}
}
}Claude Code
claude mcp add mdgen --env MDGEN_TOKEN=<your token> -- npx -y mdgen-mcpCodex CLI
~/.codex/config.toml:
[mcp_servers.mdgen]
command = "npx"
args = ["-y", "mdgen-mcp"]
env = { MDGEN_TOKEN = "<your token>" }Security
Your PAT is passed via your client's
envand never leaves your machine except as aAuthorization: Bearerheader to the mdgen API. It is not stored in this package.The PAT grants access only to your documents. Revoke it anytime from mdgen.
Treat the token like a password. Do not commit it.
Development
npm install
npm run dev # run from source (tsx)
npm run build # emit dist/
npm test # unit testsPublishing
Releases publish to npm via GitHub Actions on v* tags, using
npm Trusted Publishing (OIDC, no token)
with build provenance.
npm version patch # bump version + create commit/tag
git push && git push --tagsLicense
MIT © Shien Inc.
Part of mdgen.
Available Tools
5 toolscreate_documentCreate documentA
Create a new mdgen document. Returns the created document id.
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Output mode (default: pdf) | |
| title | No | Optional title | |
| markdown | Yes | Markdown body |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the burden of disclosing behavior. It clearly indicates that this tool creates a new document and returns its id, which is the key behavioral trait. It does not mention permissions, side effects, or failure modes, but the 'new' wording rules out overwriting, and the return of an id is explicitly disclosed.
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 a single well-structured sentence that front-loads the action and resource, and immediately states the return value. There is no unnecessary text or repetition, making it highly concise and scannable.
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 tool is a simple create operation with three fully documented parameters and no nested objects. The description mentions the return value (the id) and the schema covers all inputs. The only slight gap is that the description does not explicitly mention the 'mode' parameter or its default, but that information is present in the schema, so the overall context is sufficiently complete.
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?
Schema description coverage is 100%, so the baseline for this dimension is 3. The description adds no parameter-level information beyond what the schema already provides, but it does not need to, since every parameter (markdown, title, mode) is fully documented in the schema.
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 uses the specific verb 'Create' and identifies the resource as a 'new mdgen document', clearly distinguishing it from the list/read/update/delete siblings. It also explicitly states the return value (the created document id), which removes any ambiguity about the operation's primary effect.
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 tells what the tool does but provides no explicit guidance on when to use it versus alternatives. However, the sibling tool names (list_documents, read_document, update_document, delete_document) make the appropriate use case strongly implied, so the lack of explicit 'when not to use' is a minor gap.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
delete_documentDelete documentB
Delete a document by id.
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of disclosing behavioral traits. It only states the basic action and gives no indication of permanence, irreversibility, permissions required, error behavior, or whether the deletion is soft or hard. This leaves significant ambiguity for a destructive operation.
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 a single, front-loaded sentence that states the action and the required parameter with zero waste. Every word serves a purpose.
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?
This is a simple delete tool with one well-documented parameter and no output schema. The description covers the core operation but omits important context like what happens on success or failure, whether the delete is permanent, and any side effects. Given the low complexity, it is minimally viable but not richly complete.
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?
Schema description coverage is 100% (the single param 'id' is documented as 'Document id'), so the schema already fully explains the parameter. The description adds no additional meaning beyond the schema, which aligns with the baseline of 3 for high schema coverage.
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 action ('Delete') and the resource ('a document') with the key parameter ('by id'). This precisely differentiates it from the sibling tools like list_documents, read_document, create_document, and update_document.
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 no guidance on when to use this tool versus the sibling alternatives, nor does it mention prerequisites, conditions, or exclusions. The agent must infer usage solely from the tool name and general context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_documentsList documentsA
List the current user's saved mdgen documents (id, title, mode, updatedAt).
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the behavioral disclosure burden. It specifies the data scope ('current user's saved') and explicitly lists the output fields, making the operation's behavior transparent. However, it does not mention potential pagination, ordering, or rate limits, though these may be negligible for a simple list tool.
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 a single, focused sentence that is front-loaded with the action and resource. It includes essential details (return fields) without any filler or redundant information, earning its place fully.
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?
Given the tool's simplicity (no parameters, no output schema), the description is complete. It states the resource scope and the exact return fields, providing all necessary information for an agent to decide and invoke the tool correctly. No significant gaps exist.
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 tool has zero parameters, so the input schema is empty and schema description coverage is trivially 100%. The description adds no parameter details because there are none; per the rubric, a zero-parameter tool receives a baseline score of 4.
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 action ('List'), the resource ('the current user's saved mdgen documents'), and the returned fields (id, title, mode, updatedAt). This distinguishes it from sibling tools like read_document (which presumably fetches a single document's full content) and mutation tools.
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: it is for listing the current user's saved documents and shows metadata fields only. It does not explicitly mention alternatives or exclusions, but the scope and returned fields imply when to use it compared to read_document or the mutation tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
read_documentRead documentA
Get the full Markdown and metadata of a document by id.
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It does reveal what the tool returns (full Markdown and metadata), but it does not mention error behavior, permissions, or side effects. Since this is a read-only operation, the lack of mutation details is acceptable, but other aspects like not-found handling are undisclosed.
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 a single, front-loaded sentence that directly communicates the core function without extra words. It is concise and well-structured for quick parsing.
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?
For a simple single-parameter read tool, the description adequately covers what the tool does (returns full Markdown and metadata). It lacks explicit mention of errors or prerequisites, but given the simplicity and absence of an output schema, it is reasonably complete. A slight deduction for not noting behavior on missing documents.
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 documents the only parameter 'id' with a description, and the tool description adds no further meaning beyond 'by id'. Schema description coverage is 100%, so the baseline is 3; there is no additional semantic value from the description.
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 action ('Get') and the resource ('a document by id'), specifying that it returns 'full Markdown and metadata'. This differentiates it from sibling tools like list_documents (which lists all) and create/update/delete (which modify).
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 implies usage for retrieving a single document by ID, but it does not explicitly state when to choose this over list_documents or mention any prerequisites or exclusions. The context is clear enough to infer, but explicit guidance is absent.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
update_documentUpdate documentA
Update a document by id. Only the provided fields change; others are preserved.
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document id | |
| mode | No | New output mode | |
| title | No | New title | |
| markdown | No | New Markdown body |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It adds partial update behavior ('Only the provided fields change; others are preserved'), but does not disclose return values, permissions, error conditions, or side effects, which are important for a mutation tool.
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?
Two sentences with front-loaded purpose and a concise behavioral note. No redundant information.
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?
Parameter schema is complete and partial update behavior is explained, but with no output schema or annotations, the description omits return value and error handling details, leaving some gaps for a mutation tool.
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?
Schema coverage is 100%, so baseline is 3. The description adds meaningful semantics by explaining that only provided fields change, giving each optional parameter a partial-update context that the schema alone does not convey.
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 'Update a document by id', which is a specific verb+resource pair. It distinguishes from sibling tools (list/read/create/delete) by focusing on modification of an existing document.
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 implies usage for updating an existing document but does not explicitly mention when to use it vs alternatives like create_document or read_document. No exclusions are given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
v0.1.3- First observed
create_document - First observed
delete_document - First observed
list_documents - First observed
read_document - First observed
update_document
TDQS
Scored across 5 tools
Each tool targets a distinct operation (list, read, create, update, delete) on documents, with no overlap. An agent can clearly select the appropriate tool based on the desired action.
All tool names follow a consistent verb_noun pattern with snake_case (e.g., list_documents, create_document). The naming is predictable and uniform.
With exactly 5 tools, the set is well-scoped for a document management service, covering the essential operations without unnecessary bloat.
The tool set provides full CRUD lifecycle coverage for documents: list, read, create, update, and delete. No obvious gaps exist for the stated domain.
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
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
DocBase MCP server for AI agents
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that gives Claude Desktop and other desktop MCP clients filesystem powers—read, write, edit, and manage files like AI coding assistants.17299MIT
- AlicenseNot gradedqualityFmaintenanceMCP server that allows you to connect to Google Docs through Claude, enabling listing, reading, creating, updating, searching, and deleting documents.88148MIT
- AlicenseNot gradedqualityCmaintenanceA local MCP server for Claude Desktop with persistent task management, file operations, document generation, and PDF indexing.1521MIT
- FlicenseNot gradedqualityCmaintenanceMCP server enabling Claude Desktop to answer questions from local Word and PDF documents by searching a vector index built from their contents.-
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/Shien-Inc/mdgen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server