Skip to main content
Glama
demilul

accform-layout-mcp

by demilul

accform-layout-mcp

Local MCP server and CLI for Access layout files (*.bas, SaveAsText), rendered to SVG without Microsoft Access. This lets you visually verify form/report layout changes directly.

Features

  • MCP tools: render_form, render_form_svg, list_forms

  • CLI: accform-cli for single-file and batch rendering

  • Default output under rendered/YYYY-MM-DD/

  • Optional PNG export via cairosvg

Related MCP server: mcp-sketch

Installation

Install from repository

python -m venv .venv
.venv\Scripts\activate
pip install .

Optional PNG support:

pip install ".[png]"

Start the MCP server

After installation:

accform-layout-mcp

Alternative (directly from repository):

python server.py

Use the CLI

Render a single file:

accform-cli path/to/F_Contract.bas

Render multiple files in one run:

accform-cli forms/F_Contract.bas forms/F_Customer.bas

Use a custom output directory:

accform-cli forms/F_Contract.bas -o out/svg

Generate optional PNG output:

accform-cli forms/F_Contract.bas --png

Show all options:

accform-cli --help

MCP in VS Code Copilot (Agent Mode)

Example for .vscode/mcp.json:

{
  "servers": {
    "accform-layout": {
      "type": "stdio",
      "command": "python",
      "args": ["${workspaceFolder}/server.py"],
      "env": {
        "ACCFORM_SRC_ROOT": "${workspaceFolder}"
      }
    }
  }
}

ACCFORM_SRC_ROOT limits file discovery to your project folder.

Tool behavior

  • render_form(form, scale_mode="Universal")

    • renders SVG to rendered/YYYY-MM-DD/...

    • returns the path to the generated file

  • render_form_svg(form, scale_mode="Universal")

    • returns SVG markup as text

    • also writes the same SVG file to disk

  • list_forms()

    • lists all detected layout *.bas files under ACCFORM_SRC_ROOT

What rendering includes

Static rendering includes declarative designer state:

  • positions, sizes, captions

  • absolute colors

  • visible/hidden controls (hidden controls are dimmed)

It does not include runtime VBA behavior, for example:

  • Form_Load logic

  • dynamic RecordSource

  • conditional formatting

  • data-driven subforms

Fidelity

Faithfully ported: parse tree, twips-to-pixel conversion, section stacking, painter order, and renderers for Label/TextBox/ComboBox/ListBox/CommandButton/Rectangle/Line, including OLE color conversion.

Reconstructed: CheckBox/OptionButton, Image, Tab, Subform, OptionGroup, placeholder rendering, and theme color references.

Development

Install dependencies from requirements.txt:

pip install -r requirements.txt

License

MIT. See LICENSE.

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    MCP server that turns AI into an SVG artist. One rendering engine with a rich JSON schema, AI controls all design parameters. Renders animated SVGs with CSS @keyframes and SMIL animations. Supports 16+ element types, parametric curves, pattern groups, gradient/filter/clip/mask definitions, and PNG preview. No external dependencies, runs locally via npx.
    Last updated
    3
    938
    17
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for rendering 35+ diagram types — sequence, flowchart, ER, C4, gantt, mindmap, infra, and more — to SVG/PNG with browser preview. Local rendering with palette/theme support and shareable diagrammo.app URLs.
    Last updated
    11
    366
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Read-only MCP server for ClassQuill, a tutoring-business-management platform.

  • MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol

  • MCP server for generating rough-draft project plans from natural-language prompts.

View all MCP Connectors

Latest Blog Posts

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/demilul/accform-layout-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server