Swiftcode MCP Server
The Swiftcode MCP Server automates code generation to accelerate modern web development workflows.
Generate TypeScript API clients: Automatically creates TypeScript clients and type definitions from Swagger/OpenAPI specifications (supports JSON and YAML formats, Swagger 2.0 and OpenAPI 3.0+)
Generate Vue Components: One-click generation of Vue 3 list page components with tables, filters, and pagination using pre-defined templates
Template Management: Download and manage built-in code generation templates for Vue SFCs
Specification Validation: Validate Swagger/OpenAPI specifications
Mock Data Generation: Generate mock data to aid frontend development
Multiple Output Formats: Produces TypeScript interfaces, Vue components, and Element Plus elements
Automatically generates TypeScript API clients from Swagger/OpenAPI specifications with support for validation, type definitions, and interface generation.
Provides tools for generating TypeScript API clients and type definitions from Swagger/OpenAPI specifications, with support for type interfaces.
Generates Vue 3 list page components with filters, tables, and pagination based on configurable specifications, including support for Element Plus UI components.
Supports parsing and processing of YAML-formatted Swagger/OpenAPI specifications for API client generation.
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., "@Swiftcode MCP Server generate a TypeScript API client from our swagger.json file"
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.
Swiftcode MCP Server
English | 简体中文
Introduction
Swiftcode MCP Server is a server based on the Model Context Protocol (MCP), focusing on automated code generation to support modern web development workflows. It can automatically generate TypeScript API clients from Swagger/OpenAPI specifications and quickly generate Vue list page components based on templates, greatly improving frontend and backend development efficiency.
Related MCP server: OpenAPI Client Generator MCP
Features
Swagger/OpenAPI to TypeScript: Automatically generate TypeScript API clients and type definitions.
Vue Component Generation: One-click generation of Vue 3 list pages with tables, filters, and pagination.
Template Management: Obtain and use built-in code generation templates.
Specification Validation: Supports Swagger/OpenAPI validation.
Mock Data Generation: Optionally generate mock data for frontend development.
Supported Technologies
Frontend: Vue 3 (Composition API), Element Plus, TypeScript
API Specification: Swagger 2.0, OpenAPI 3.0+ (JSON/YAML)
Code Generation: TypeScript interfaces/types, Vue 3 components, Element Plus forms and tables
Tool List
1. generate_api_client
Generate TypeScript API client from Swagger/OpenAPI specification.
Parameters:
source(string): Swagger/OpenAPI file path or URLdir(string): Output directory
Example:
{
"source": "/mock/swagger.json",
"dir": "./"
}2. generate_sfc_template_client
Download and generate SFC/Vue list template files to the specified directory.
Parameters:
dir(string): Output directory
Example:
{
"dir": "./"
}3. generate_sfc_client
Generate Vue list components based on template files.
Parameters:
source(string): Template file pathdir(string): Output directory
Example:
{
"source": "template.js",
"dir": "./"
}Quick Start
NPX (Recommended)
Start as an MCP Server:
{
"mcpServers": {
"swiftcode-npm": {
"command": "npx",
"args": ["-y", "@swiftcode/mcp"]
}
}
}Local Development
pnpm install
# Build MCP
pnpm build
# Start MCP inspector
pnpm inspectorStart as an MCP Server:
{
"mcpServers": {
// Local development
"swiftcode-local": {
"command": "node",
"args": ["swiftcode-mcp-server/dist/index.js"]
}
}
}Docker
docker build -t swiftcode-mcp .
docker run -it swiftcode-mcpUsage Examples
Generate API Client
{
"source": "/user/swagger.json",
"dir": "./"
}Generate Vue List Component
{
"source": "template.js",
"dir": "./"
}Contribution Guide
Fork this repository
Create a feature branch
Commit your changes
Add tests if necessary
Submit a Pull Request
License
MIT
For more help or questions, please visit the GitHub.
Available Tools
3 toolsgenerate_api_clientC
Generate TypeScript API client from Swagger/OpenAPI specification
Inputs: source (required), dir (required).
generate_sfc_clientC
使用 sfc 模板生成 vue 列表组件 / Generate vue sfc component page.Examples: For file only returns vue sfc pages, default file name: 'template.js'
Inputs: source (required), dir (required).
generate_sfc_template_clientC
下载转换 sfc / vue 列表的模板文件当前目录下 / Download the transform sfc template files
Inputs: dir (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The tools have overlapping purposes focused on code generation from templates, with 'generate_sfc_client' and 'generate_sfc_template_client' both involving SFC/Vue components and potentially causing confusion. However, 'generate_api_client' is distinct for TypeScript API generation, and descriptions provide some differentiation.
All tool names follow a consistent 'generate_*_client' pattern with snake_case, making them predictable and readable. The naming convention is uniform across all three tools.
With only 3 tools, the server feels thin for a code generation domain, potentially lacking broader coverage. While each tool might be useful, the count is borderline low for the apparent scope.
Inferred domain is code generation from templates, but there are significant gaps: no tools for updating, deleting, or managing generated code, and coverage is limited to specific formats (Swagger/OpenAPI, Vue SFC). This could lead to agent failures in broader workflows.
Maintenance
Related MCP Connectors
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseBqualityDmaintenanceA comprehensive Model Context Protocol server that provides advanced Node.js development tooling for automating project creation, component generation, package management, and documentation with AI-powered assistance.79MIT
- -licenseAqualityNot gradedmaintenanceA TypeScript-based MCP server that generates API clients from OpenAPI specifications, allowing automated code generation through natural language.144 npm1-
- AlicenseBqualityDmaintenanceA server based on Model Context Protocol that parses Swagger/OpenAPI documents and generates TypeScript types and API client code for different frameworks (Axios, Fetch, React Query).1215 npm16ISC

MockLoop MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceA Model Context Protocol server that generates and runs mock API servers from API documentation like OpenAPI/Swagger specs, enabling developers and AI assistants to quickly spin up mock backends for development and testing.17MIT