arch-drawing-analyzer
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., "@arch-drawing-analyzerAnalyze the architectural drawings in the permit set PDF"
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.
Architectural Drawing Analyzer — Setup & Usage Guide
What This Is
An MCP server that lets Claude read and analyze large architectural drawing PDFs (permit sets, construction documents, etc.) that are too big to upload directly. It works by slicing PDFs into manageable chunks — either as extracted PDF pages or rendered PNG images — and bridging them into Claude's environment via the Filesystem connector.
Supports local files and authenticated SharePoint downloads (via Microsoft Graph API with device code auth).
Related MCP server: MCP Analyst
System Components
1. arch-drawing-analyzer (MCP Server)
Install location: %LOCALAPPDATA%\arch-design-mcp
On Windows this expands to
C:\Users\{username}\AppData\Local\arch-design-mcp. Per-user, no admin rights required.
A Python MCP server running over stdio transport. Provides seven tools:
Tool | Purpose | Speed |
| Load a PDF (local path, SharePoint link, or URL), return metadata + session_id | Instant |
| Extract a page range to a new PDF file on disk | Instant |
| Render a page range as PNG files on disk | ~1-2 sec/page |
| Return page content as base64 (PDF or PNG) in the tool result | Instant (PDF) / slow (images) |
| Search for text across all pages, returns page numbers + context | Fast (~1-5 sec for 250 pages) |
| Return the analysis prompt template | Instant |
| Delete temp files for a session | Instant |
Source files:
File | Purpose |
| MCP tool definitions, session management, FastMCP entry point |
| PDF inspection (pypdf), page extraction, image rendering (PyMuPDF), text search |
| Unauthenticated URL download with logging |
| Microsoft Graph device code authentication, token caching/refresh |
| Authenticated SharePoint file download via Graph API |
| Dependencies and Python version |
| Azure AD credentials (not committed to git) |
2. Filesystem Connector (Claude Desktop Built-in)
Provides copy_file_user_to_claude which bridges files from the user's machine into Claude's environment. After save_pages_as_images writes PNGs to disk, the Filesystem connector copies them to /mnt/user-data/uploads/ where Claude can view them.
Required allowed directories:
%LOCALAPPDATA%\arch-design-mcp— server source +pages/output directory
3. Output Directory
All saved pages and images go to %LOCALAPPDATA%\arch-design-mcp\pages\ by default. This keeps output contained within the Filesystem connector's allowed root. All tools accept an optional output_dir parameter to override this.
Installation
Prerequisites
Python 3.13+ (via uv)
Claude Desktop with Filesystem connector enabled
Azure AD app registration (for SharePoint access — see SharePoint Setup below)
No external binaries (Poppler, etc.) are required. PyMuPDF handles all PDF rendering natively.
Step 1: Clone the Project
cd %LOCALAPPDATA%
git clone <repo-url> arch-design-mcp
cd arch-design-mcpStep 2: Install Dependencies
uv syncThis installs from pyproject.toml:
Package | Purpose |
| MCP server framework |
| Async HTTP client for URL downloads |
| PDF rendering and text search (no external binaries) |
| Fast PDF page extraction (no rendering) |
| Microsoft Authentication Library (device code flow) |
| Load Azure credentials from |
Step 3: Register in Claude Desktop
Add to your Claude Desktop config file (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"arch-drawing-analyzer": {
"command": "uv",
"args": [
"run",
"--directory",
"C:\\Users\\YOUR_USERNAME\\AppData\\Local\\arch-design-mcp",
"python",
"-m",
"server"
]
}
}
}Replace
YOUR_USERNAMEwith your Windows username. The JSON config does not expand environment variables.
Merge this into any existing mcpServers block — don't replace the whole file if you have other servers configured.
Step 4: Configure Filesystem Connector
In Claude Desktop, add %LOCALAPPDATA%\arch-design-mcp to the Filesystem connector's allowed directories.
SharePoint Setup (Optional)
Required only if you want to pass SharePoint links directly to process_pdf instead of downloading files manually first.
Azure AD App Registration
Go to Azure Portal → App registrations → find or create SP-MCP
API Permissions — add these Microsoft Graph delegated permissions:
Permission | Type | Purpose |
| Delegated | Basic sign-in |
| Delegated | Read files the user can access |
| Delegated | Resolve SharePoint sharing links |
Click "Grant admin consent for {org}" after adding permissions
Go to Authentication → Advanced settings → set "Allow public client flows" to Yes (required for device code flow)
Copy the Application (client) ID and Directory (tenant) ID from the Overview page
Configure Credentials
cd %LOCALAPPDATA%\arch-design-mcp
copy .env.example .envEdit .env:
SP_MCP_CLIENT_ID=your-actual-client-id
SP_MCP_TENANT_ID=your-actual-tenant-idNo client secret is needed. The device code flow uses a "public client" — no secrets stored on user machines.
First Authentication
Before using SharePoint links, authenticate once by opening a terminal and running:
cd %LOCALAPPDATA%\arch-design-mcp
uv run python -m graph_authThis will automatically open your browser to the Microsoft sign-in page with the device code pre-filled. Just sign in with your Tocci account. The terminal will confirm:
Opening browser for sign-in...
Waiting for sign-in to complete...
Authenticated as: psavine@tocci.com
Token cached at: C:\Users\psavine\.arch-design-mcp-token-cache.json
You can now use SharePoint links in Claude.The token refreshes silently for ~90 days. If it expires, Claude will tell you to run the auth command again.
To clear the token cache: uv run python -m graph_auth --clear
Security Notes
Delegated permissions only — the server can only access files the signed-in user already has permission to view. No tenant-wide escalation.
No client secret — nothing sensitive stored on the machine beyond a refresh token.
No open ports — all auth happens via browser redirect, not a local server.
Token cache — stored in the user's home directory, scoped to that user.
Usage Workflows
Workflow A: Visual Analysis (Claude reads the drawings)
The primary workflow. Claude renders specific pages as PNG images, copies them to its environment, and views them.
1. process_pdf("c:\path\to\drawings.pdf")
→ session_id, 255 pages, 69 MB
2. save_pages_as_images(session_id, start_page=1, end_page=1, dpi=150)
→ %LOCALAPPDATA%\arch-design-mcp\pages\page_001.png (707 KB)
3. Filesystem:copy_file_user_to_claude → copies PNG to Claude's environment
4. Claude views the drawingLimits: 1-3 pages at a time for arch E-size (36"x24") sheets at 150 DPI. Each page is ~300-700 KB as PNG.
Workflow B: Text Search (find pages without rendering)
Use search_pdf to locate specific content across all pages, then render only the relevant ones.
1. process_pdf("c:\path\to\drawings.pdf")
→ session_id, 255 pages
2. search_pdf(session_id, query="generator")
→ 3 matches: pages 178, 180, 195 with context snippets
3. save_pages_as_images(session_id, start_page=178, end_page=178)
→ render only the relevant sheetWorks best on PDFs with embedded text (specifications, schedules, title blocks). Architectural vector drawings have limited searchable text.
Workflow C: Drawing Index Strategy
For large sets (100+ pages), don't render every page. Instead:
Render pages 2-4 to find the drawing index/sheet list
Identify sheet numbers for the discipline you need
Binary-search or text-search to the right page range
Render only the target sheets
Workflow D: PDF Extraction (for archiving or re-upload)
Fast page extraction without image rendering.
1. process_pdf("c:\path\to\drawings.pdf")
→ session_id, 255 pages
2. save_pages(session_id, start_page=1, end_page=10)
→ %LOCALAPPDATA%\arch-design-mcp\pages\drawings_p1-10.pdf (2 MB)Workflow E: SharePoint Links
Pass SharePoint sharing links directly — the server authenticates and downloads automatically.
1. process_pdf("https://toccibuilding.sharepoint.com/:b:/s/24061-SouthShore/...")
→ authenticates via cached token, downloads, returns session_idConfiguration
Logging
Configured at the top of server.py. Logs go to stderr (doesn't interfere with MCP stdio transport).
LOG_LEVEL = logging.DEBUG # DEBUG for full diagnostics, INFO for productionImage Rendering Defaults
Parameter | Default | Notes |
| 150 | Good balance for arch drawings. Use 100 for faster/smaller. |
| 4096 | Max pixels on longest side. Claude vision limit is ~4096. |
A 36"x24" sheet at 150 DPI renders to ~5400x3600, then downscales to 4096x2730.
MCP Client Timeout
The Claude.ai MCP client has a ~60-120 second timeout per tool call. Keep image rendering to 1-3 pages per call.
Known Limitations
MCP Tool Result Size
Base64-encoded content in tool results is limited to ~1 MB. A single 36"x24" arch drawing exceeds this. Use save_pages_as_images (writes to disk) instead of get_pages(as_images=True) (returns base64).
Filesystem Bridge File Size
copy_file_user_to_claude fails on files larger than ~5 MB. Keep extracted PDF chunks to ~10 pages or use single-page image rendering.
PDF Text Extraction
Architectural drawings are mostly vector graphics with limited embedded text. PyMuPDF text extraction is better than pypdf on these files, but results are still sparse on heavily vector-based sheets. Use visual analysis for reading drawings.
Claude's PDF Handling
PDFs uploaded by the user in a chat message are rendered as images by the platform before Claude sees them. PDFs copied mid-conversation via copy_file_user_to_claude are NOT rendered — Claude sees raw bytes. That's why the PNG pipeline exists: render on the user's machine, copy the image, Claude views the image.
File Structure
%LOCALAPPDATA%\arch-design-mcp\
├── server.py # MCP server — tool definitions, session management
├── pdf_processor.py # PDF inspection, extraction, rendering (PyMuPDF), text search
├── downloader.py # Unauthenticated URL download with logging
├── graph_auth.py # Device code auth, token caching/refresh (MSAL)
├── graph_downloader.py # SharePoint download via Graph API
├── pyproject.toml # Python dependencies
├── .env.example # Credential template
├── .env # Actual credentials (git-ignored)
├── .gitignore
├── pages/ # Default output for saved pages and images
├── __init__.py
├── .python-version # Python 3.13
└── uv.lock # Locked dependency versionsTemp Files
Sessions create temp directories in %TEMP%\mcp_arch_{session_id}_*. Cleaned up by cleanup_session() or on server exit. Files in pages/ persist — clean up manually or add to a maintenance routine.
Token Cache
Stored at ~/.arch-design-mcp-token-cache.json. Delete to force re-authentication.
Deployment to Other Users
For non-technical users at Tocci:
Install uv — single binary, no Python install needed
Clone the repo to
%LOCALAPPDATA%\arch-design-mcpRun
uv sync— installs everything including PythonCopy
.env.exampleto.env, fill in the Azure app credentials (same Client ID/Tenant ID for all users)Add the
mcpServersconfig to%APPDATA%\Claude\claude_desktop_config.json(see Step 3 above — replaceYOUR_USERNAME)Add
%LOCALAPPDATA%\arch-design-mcpto Filesystem connector allowed directoriesFirst SharePoint use: run
cd %LOCALAPPDATA%\arch-design-mcp && uv run python -m graph_authin a terminal, follow the browser prompt once
No Poppler install, no PATH configuration, no external binaries, no admin rights needed.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/ViditJain123/arch-design-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server