Claude Custom Prompts Server logo

Claude Custom Prompts Server

by minipuft

A Node.js server implementing the Model Context Protocol (MCP) for Claude AI models, allowing you to define and use custom prompt templates with a modular, category-based organization system. It supports prompt chains and multiple transport options.

View on GitHub

Last updated: N/A

What is Claude Custom Prompts Server?

The Claude Custom Prompts Server is a Node.js application that enables users to create, manage, and utilize custom prompt templates for Claude AI models via the Model Context Protocol (MCP). It offers a structured system for organizing prompts into categories and supports complex workflows through prompt chaining.

How to use Claude Custom Prompts Server?

To use the server, you need to install Node.js and npm or yarn. Clone the repository, install dependencies, build the server, and start it. Configure Claude Desktop to connect to the server by adding the server details to the claude_desktop_config.json file. Then, you can trigger prompts within Claude using commands like >>command_name argument1 argument2.

Key features of Claude Custom Prompts Server

  • Easy integration with Claude using MCP

  • Define custom prompt templates using Markdown files

  • Support for prompt arguments with validation

  • Organized prompt categories for better management

  • Multiple transport options (SSE and STDIO)

  • Special context placeholders for accessing conversation history

  • Support for prompt chains to break complex tasks into steps

  • Distributed prompts configuration with category-specific files

Use cases of Claude Custom Prompts Server

  • Creating personalized greetings for users

  • Analyzing content for specific attributes like clarity or sentiment

  • Generating code snippets based on natural language descriptions

  • Summarizing long documents or articles

  • Breaking down complex tasks into a sequence of prompts using prompt chains

FAQ from Claude Custom Prompts Server

How do I install the Claude Custom Prompts Server?

Clone the repository, navigate to the server directory, run npm install to install dependencies, then run npm run build to build the server, and finally npm start to start the server.

How do I configure Claude Desktop to use the server?

Locate your claude_desktop_config.json file and add a new entry under mcp_servers with the correct path to the server's index.js file, the working directory (cwd), and any necessary environment variables like the port.

How do I create a custom prompt?

Create a new markdown file in the appropriate category folder, add the prompt template to the file, and register the prompt in the category's prompts.json file.

What are prompt chains and how do I use them?

Prompt chains allow you to define a sequence of prompts where the output of one prompt is used as the input for the next. Create a markdown file defining the chain steps, input/output mappings, and prompt IDs.

What do I do if the server can't find my prompt files?

Ensure that the cwd parameter in your Claude Desktop configuration is set to the correct server directory. The server resolves all file paths relative to this working directory.