TypeScript Prompt Development MCP server

Provides a TypeScript-based development environment for creating, testing, and refining structured prompts locally before production deployment.
Back to servers
Provider
gpaul
Release date
Mar 20, 2025
Language
TypeScript

This MCP server provides pre-defined prompt templates for AI assistants to generate comprehensive plans for TypeScript projects, API architectures, and GitHub workflows. It helps ensure consistent, high-quality output following modern TypeScript development standards while working seamlessly with the Local Dev MCP to create a complete workflow from planning to implementation.

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn

Installation

  1. Clone the repository

    git clone <repository-url>
    cd typescript-prompt-mcp
    
  2. Install dependencies

    npm install
    
  3. Set up environment variables

    # Create development environment file
    cp .env.example .env.development
    # Create production environment file
    cp .env.example .env.production
    

Usage

Running the Server

Development Mode:

npm run dev

Production Mode:

npm run build
npm start

Or use the shorthand:

npm run prod

Integrating with Claude Desktop

  1. Start the MCP server locally on your machine

  2. Add the MCP to Claude Desktop

    • Open Claude Desktop
    • Click your profile picture → Settings → Extensions
    • Select "Add Custom MCP"
    • Configure with:
      • Name: TypeScript Prompt MCP (or any name you prefer)
      • URL: The URL where your server is running (e.g., http://localhost:3000)
    • Click "Add MCP"
  3. Alternative: Configure via command

    "ts-prompts": {
      "command": "node",
      "args": [
        "YOUR_CUSTOM_PATH/dist/index.js"
      ]
    }
    
  4. Enable the MCP by toggling the switch next to it

  5. Add Local Dev MCP using the same process for a complete workflow

  6. Verify the connection by starting a new conversation with Claude and asking for help with TypeScript project planning

Using the Prompts with Claude

Once connected, you can ask Claude questions like:

  • "Help me plan an API architecture for a TypeScript project called 'ecommerce-backend' with MongoDB and JWT authentication"
  • "I need a setup plan for a new TypeScript frontend library with React components"
  • "Create a GitHub workflow plan for my TypeScript CLI project with automated testing and npm publishing"
  • "Now implement the API project we just planned using the Local Dev MCP"

Available Prompts

API Architecture Prompt

Generates a comprehensive architecture plan for a TypeScript API.

Parameters:

  • projectName: Name of the API project
  • database: Database to use (postgres, mysql, mongodb, etc.)
  • auth: Authentication method (jwt, oauth, none)
  • endpoints: Comma-separated list of main API endpoints

New Project Setup Prompt

Generates a setup plan for a new TypeScript project.

Parameters:

  • projectName: Name of the project
  • projectType: Type of project (api, frontend, library, cli)
  • features: Key features or requirements separated by commas

GitHub Workflow Prompt

Generates a GitHub workflow plan for a TypeScript project.

Parameters:

  • projectName: Name of the project
  • ciFeatures: Comma-separated list of CI features (lint, test, build, etc.)
  • deployTarget: Deployment target (netlify, vercel, aws, azure, etc.)
  • branchStrategy: Branch strategy (gitflow, trunk, github-flow)

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later