tok_mcp
tok_mcp is an MCP server for generating cloud architecture drafts and companion documentation from service requirements.
Design an architecture using platform, service type, DAU, budget, and optional realtime/AI/global/upload/growth/concurrency needs.
Look up AWS Well-Architected reference patterns by service type and scale.
Recommend ARM vs x86 CPU architecture for a workload and platform.
Estimate monthly cloud costs with per-service breakdown for compute, database, and optional cache.
Suggest scaling strategies based on current and target DAU and current architecture.
Generate ARCHITECTURE.md and .ai-context.yaml documents from a design, optionally to a chosen output path.
Provides architectural recommendations for SSL/TLS certificate management using AWS Certificate Manager within cloud networking designs.
Offers comprehensive architectural design recommendations for AWS services including ECS Fargate, RDS, S3, and CloudFront, complete with cost estimation and scaling strategies.
Recommends ARM64/Graviton CPU architectures for cost-optimized and performance-efficient cloud computing workloads.
Provides design patterns and folder structures for containerized architectures and infrastructure-as-code development.
Generates development guidelines and structural patterns for building backend services using the Express framework.
Generates development guidelines and structural patterns specifically tailored for the FastAPI framework.
Incorporates GCP best practices and architectural patterns into its design recommendations for cloud-native services.
Provides decision-making guidance on container orchestration, comparing Kubernetes with managed services like ECS Fargate based on project scale.
Generates human-readable ARCHITECTURE.md documents containing summaries, diagrams, and decision logs for development teams.
Generates development guidelines and structural patterns for backend applications using the NestJS framework.
Recommends and provides configuration patterns for PostgreSQL databases, specifically for Amazon RDS instances.
Includes structural patterns and development guidelines for using Prisma as an ORM in TypeScript-based projects.
Provides architectural recommendations for caching layers using Redis, specifically within the ElastiCache service.
Provides structural patterns and development guidelines for using SQLAlchemy as an ORM in Python-based architectures.
Offers guidance on organizing infrastructure-as-code using Terraform within the project's directory structure.
Recommends TypeScript for application development and provides tailored project structures and best practices.
Generates structured .ai-context.yaml files that provide AI agents with a concise, token-efficient understanding of the project architecture and constraints.
Click on "Deploy 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., "@tok_mcp Help me design a scalable AWS architecture for a B2B SaaS with a $100 budget."
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.
tok_mcp
tok_mcp는 서비스 종류와 예상 사용자 수를 받아 클라우드 설계 초안을 만듭니다. 결과는 팀에서 검토할 ARCHITECTURE.md와 코딩 도구에 전달할 .ai-context.yaml입니다.
정적 Next.js 사이트에 서버가 필요할까?
이 데모의 설계에는 S3 저장소만 있고 상시 서버와 DB는 없습니다. 서울 리전에 정적 파일 50GB를 저장할 때 월 기본료는 $1.25입니다. 요청·전송·CDN·세금은 별도입니다.

30초 영상 보기 · 인터랙티브 설계 비교 내려받기 · 설계 문서 결과 · YAML 결과
Node.js 22 이상과 npm이 있는 환경에서 새 디렉터리를 열고 실행하세요.
git clone --depth 1 https://github.com/SeongminJaden/tok_mcp.git && cd tok_mcp/demo/next-static && npm ci && npm run demo && npm run preview로컬 데모에서 정적 사이트·서버와 DB·호스팅 미정을 전환하고, 각 설계의 두 파일을 받을 수 있습니다. 내려받은 비교 화면은 오프라인에서도 열립니다. 명령을 실행하면 실제 정적 빌드는 out/, 기본 설계 문서는 out/results/static/에 생성됩니다. AWS 계정은 필요 없습니다.
Related MCP server: Principal Architect Service
라이브러리로 사용하기
npm install tok_mcpimport { designArchitecture, generateArchitectureDocs } from "tok_mcp";
const design = designArchitecture({
platform: "aws",
serviceType: "saas",
description: "TeamNotes",
dau: 500,
monthlyBudget: 150,
});
const files = generateArchitectureDocs(design);
console.log(files["ARCHITECTURE.md"]);프로젝트에서 파일을 저장할 경로를 정합니다. 같은 설계를 수정한 뒤 문서만 다시 만들 수도 있습니다. 스타터에서 두 파일을 저장하는 방법
스타터에서 선택한 스택 전달하기
이 API는 0.3.0부터 사용할 수 있습니다. 소비 프로젝트에서 npm install tok_mcp@0.3.0으로 설치하세요.
const design = designArchitecture({
description: "docs-site", serviceType: "web-api", dau: 500, monthlyBudget: 150,
platform: "aws", runtime: "static", database: "none",
starter: {
framework: "Next.js (App Router)", language: "typescript",
orm: null, entrypoints: ["app/layout.tsx", "app/page.tsx"],
},
});starter에는 생성기에서 확인한 값을 넣습니다. ORM을 선택하지 않았으면 null로 지정합니다. runtime은 server, static, undecided 중 하나이고 database는 required, none, undecided 중 하나입니다. 공급자도 정해지지 않았다면 platform: "undecided"를 사용합니다. 기존처럼 공급자만 지정하면 서버와 DB가 있는 설계를 생성합니다.
정적 배포의 기본 DB 선택은 none입니다. 서울 AWS 예제는 정적 파일 50GB의 기본료로 월 $1.25를 계산합니다. DB 없는 서버는 계산에서 DB와 캐시를 제외합니다. DB 또는 배포 방식이 미정이면 총액을 보류합니다. 정적 사이트에 별도 API가 필요하면 서버 설계를 따로 만듭니다. MCP의 estimate_cost에도 { design }을 넘길 수 있으며, 보류된 비용은 null입니다.
peakConcurrent는 부하 테스트의 동시 사용자 목표, growthRate는 6개월 뒤 검증할 DAU를 정합니다. needsRealtime은 활성 연결 수와 재연결 테스트, needsFileUpload는 업로드 한도, needsAI는 추론 용량과 비용, isGlobal은 지역별 지연과 복제 검토를 설계 문서에 추가합니다. 이 값만으로 필요한 서버 수나 추가 서비스 요금을 단정하지 않습니다.
Cursor 또는 Claude Desktop에서 사용하기
MCP 설정 파일에 아래 항목을 추가합니다. 연결 후 design_architecture를 호출하고, 수정한 설계는 generate_docs에 넘깁니다. 두 도구 모두 structuredContent.files에 파일 본문을 반환합니다.
{
"mcpServers": {
"tok_mcp": { "command": "npx", "args": ["-y", "tok_mcp@0.3.0"] }
}
}비용을 읽는 법
예제의 서울 AWS 구성은 월 $95.56입니다. Fargate ARM 태스크 1개, RDS PostgreSQL 1대, Redis 노드 1개를 월 730시간 구동하는 조건입니다. 트래픽 비용과 세금은 별도입니다. 단가표 / Price sheet
0.1.x에서 올릴 때는 YAML을 읽는 코드의 필드 경로를 확인하세요. 새 형식의 버전은 schema_version: 2이고 설계 초안에는 status: proposed가 붙습니다. YAML · Markdown
개발 환경에서는 npm ci && npm test로 빌드와 통합 테스트를 실행합니다.
GitHub · npm · Buy Me a Coffee · MIT
문서 QA 설계 평가와 로컬 운영
evaluate_context_architectures에 다음 입력을 주면 긴 문맥 직접 입력, 검색 후 생성, 재정렬 후 생성의 실험 절차를 돌려줍니다.
{"targets":{"minGroundedRate":0.9,"maxP95Ms":1500,"maxUsdPer1000":3,"minQueries":100}}측정이 끝나면 runs에 파이프라인별 pipeline과 observations 배열을 추가합니다. 각 행은 queryId, correct, supported, latencyMs, costUsd입니다. 같은 질문 집합을 사용해야 합니다. 정답과 근거를 모두 만족한 비율, 최근접 순위 p95, 요청 1,000건 환산 비용을 비교합니다. 표본이 충분하면 목표를 만족한 후보 중 세 지표에서 다른 후보에 밀리지 않는 조합을 반환합니다. 모델 호출, 채점, 부하 테스트는 호출자가 수행합니다. 설계 근거는 OpenDC-Infer-LC, 근거 기반 QA 평가 연구, 검색 기준선 연구입니다.
로컬 작업은 stdio 설정의 env에 TOK_WORKSPACE_ROOT를 절대경로로 지정해 활성화합니다. 모니터링에는 이미 실행 중인 서비스의 TOK_HEALTH_URL(예: http://127.0.0.1:3000/health)도 지정합니다.
도구 | 동작 |
write_architecture_artifact | 요구사항으로 ARCHITECTURE.md 또는 .ai-context.yaml 한 파일을 생성합니다. 내용이 같으면 unchanged, 다르면 기존 파일을 보존합니다. |
monitor_health | 고정된 로컬 HTTP 주소에서 1~6회 응답 헤더 도착 시간, 상태 코드, 상태 전환을 기록합니다. |
diagnose_workspace | package.json 형식·실행 스크립트, .npmrc의 TLS 검증과 직접 기록된 인증 값, .env.local 접근 권한을 점검합니다. |
HTTP 배포에서는 파일 작업 도구를 노출하지 않습니다. Codex용 운영 스킬은 패키지에 포함됩니다.
Available Tools
6 toolsdesign_architectureB
대화형 질문을 통해 서비스에 맞는 아키텍처를 설계합니다. 플랫폼, 규모, 예산 등을 분석하여 최적의 아키텍처를 추천하고 ARCHITECTURE.md와 .ai-context.yaml 문서를 생성합니다.
Inputs: dau (required), platform (required), description (required), serviceType (required), +7 more.
estimate_costB
아키텍처 구성에 대한 월간 예상 비용을 계산합니다. 각 서비스별 비용 breakdown을 제공합니다.
Inputs: compute (required), database (required), platform (required), cache.
generate_docsB
아키텍처 설계 결과를 바탕으로 ARCHITECTURE.md (사람용)와 .ai-context.yaml (AI용) 문서를 생성합니다.
Inputs: design (required), outputPath.
get_aws_referenceA
AWS 모범 사례 아키텍처를 조회합니다. 서비스 유형과 규모에 맞는 AWS Well-Architected 기반 아키텍처 패턴을 제공합니다.
Inputs: scale (required), serviceType (required).
get_scaling_strategyB
현재 아키텍처에 대한 확장 전략을 제안합니다. 트래픽 증가 시나리오별 대응 방안을 제공합니다.
Inputs: platform (required), targetDau (required), currentDau (required), currentArchitecture.
recommend_cpu_archB
워크로드 특성에 따라 최적의 CPU 아키텍처(ARM/x86)를 추천합니다. 비용 효율성과 성능을 고려한 추천을 제공합니다.
Inputs: workloadType (required), platform.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose: interactive design, cost estimation, doc generation, reference patterns, scaling strategies, and CPU architecture recommendation. No overlap.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., design_architecture, estimate_cost). Convention is uniform and predictable.
6 tools is well-scoped for the domain of cloud architecture design. Each tool justifies its existence without bloat or deficiency.
Covers core lifecycle: design, cost, docs, reference, scaling, and hardware recommendation. Minor gaps like missing a tool for modifying architectures or handling non-AWS providers, but adequate for the intended scope.
Related MCP Connectors
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Devopness MCP server for DevOps happiness! Empower AI Agents to deploy apps and infra, to any cloud.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server that gives AI coding assistants persistent memory, structural code graph analysis, and safe multi-agent coordination, enabling them to answer architectural questions, track decisions across sessions, and coordinate safely in multi-agent workflows.394MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server for managing product initiatives, architecture decisions, requirements, and releases, enabling AI tools to interact with architectural documentation and planning.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server providing interactive prompts for designing and reviewing microfrontend and microservice architectures, with embedded development rules and best practices.ISC
- FlicenseAqualityCmaintenanceAn MCP server that designs software projects by drafting design documents with an LLM, refining them, answering questions, and creating projects via the AI2DEV API.4-