Skip to main content
Glama

Swiftcode MCP Server

by hongaah

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.

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 URL
  • dir (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 path
  • dir (string): Output directory

Example:

{ "source": "template.js", "dir": "./" }

Quick Start

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 inspector

Start 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-mcp

Usage Examples

Generate API Client

{ "source": "/user/swagger.json", "dir": "./" }

Generate Vue List Component

{ "source": "template.js", "dir": "./" }

Contribution Guide

  1. Fork this repository
  2. Create a feature branch
  3. Commit your changes
  4. Add tests if necessary
  5. Submit a Pull Request

License

MIT


For more help or questions, please visit the GitHub.

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A Model Context Protocol server that automates code generation for web development, specializing in creating TypeScript API clients from Swagger/OpenAPI specs and Vue.js components for frontend development.

  1. Introduction
    1. Features
      1. Supported Technologies
        1. Tool List
          1. 1. generate_api_client
          2. 2. generate_sfc_template_client
          3. 3. generate_sfc_client
        2. Quick Start
          1. NPX (Recommended)
          2. Local Development
          3. Docker
        3. Usage Examples
          1. Generate API Client
          2. Generate Vue List Component
        4. Contribution Guide
          1. License

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A 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.
              Last updated -
              7
              4
              JavaScript
              MIT License
            • -
              security
              A
              license
              -
              quality
              A server that enables interaction with any API that has a Swagger/OpenAPI specification through Model Context Protocol (MCP), automatically generating tools from API endpoints and supporting multiple authentication methods.
              Last updated -
              34
              90
              TypeScript
              Apache 2.0
            • A
              security
              F
              license
              A
              quality
              A 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).
              Last updated -
              12
              7
              13
              TypeScript
            • A
              security
              A
              license
              A
              quality
              A tool that creates MCP (Model Context Protocol) servers from OpenAPI/Swagger specifications, enabling AI assistants to interact with your APIs.
              Last updated -
              3
              17
              21
              TypeScript
              MIT License
              • Apple

            View all related MCP servers

            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/hongaah/swiftcode-mcp-server'

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