提示
STDIO提示和模板管理MCP服务器
提示和模板管理MCP服务器
A comprehensive collection of Model Context Protocol (MCP) prompt templates and tools for various AI-powered workflows and integrations.
MCP-Prompts is a repository designed to provide ready-to-use prompt templates and tools for working with the Model Context Protocol. This project includes various prompt templates, integration examples, and utilities to help developers quickly implement MCP-based solutions in their applications.
This repository includes configurations and examples for the following MCP tools:
Dockerfile.file): Access and manage local file systemsDockerfile.memory): Persistent memory and state managementDockerfile.aws): AWS services integrationDockerfile.mcp): Base MCP server configurationThe repository includes several prompt template categories:
Clone the repository:
git clone https://github.com/sparesparrow/mcp-prompts.git cd mcp-prompts
Explore available templates:
ls -la examples/ ls -la data/
Choose your integration method:
Each MCP server type has a dedicated Dockerfile:
# Build the file system MCP server docker build -f Dockerfile.file -t mcp-file-server . # Build the memory MCP server docker build -f Dockerfile.memory -t mcp-memory-server . # Build the AWS integration MCP server docker build -f Dockerfile.aws -t mcp-aws-server .
Create a configuration file (.env based on .env.example):
cp .env.example .env
Edit configuration with your specific settings:
MCP_SERVER_PORT=3000 AWS_REGION=us-east-1 # Add other required environment variables
Run the MCP server:
docker run -p 3000:3000 --env-file .env mcp-aws-server
Add the MCP server configuration to your client's config file:
{ "mcpServers": { "mcp-prompts": { "command": "docker", "args": ["run", "-i", "--rm", "mcp-aws-server"], "env": { "AWS_REGION": "us-east-1" } } } }
// Using the file system MCP server const response = await mcpClient.callTool({ name: "read_file", arguments: { path: "./data/sample.json" } });
// Upload a file to S3 using AWS MCP server const response = await mcpClient.callTool({ name: "s3_upload", arguments: { bucket: "my-bucket", key: "data/file.json", content: fileContent } });
// Store context in memory server await mcpClient.callTool({ name: "store_memory", arguments: { key: "conversation_context", value: conversationData } }); // Retrieve stored context const context = await mcpClient.callTool({ name: "retrieve_memory", arguments: { key: "conversation_context" } });
Browse the examples/ directory for complete prompt templates:
examples/code-review-prompt.mdexamples/aws-deployment-guide.mdexamples/data-analysis-template.mdFor comprehensive AWS integration documentation, see:
DEPLOYMENT_GUIDE.md - Complete deployment instructionsDOCKER_AWS_TEST_REPORT.md - AWS Docker testing resultscdk/ - AWS CDK infrastructure as codeDockerfile.aws - AWS-specific MCP server containermcp-prompts/
├── apps/              # Application code
├── cdk/               # AWS CDK infrastructure
├── data/              # Sample data and datasets
├── docs/              # Documentation
├── examples/          # Example prompts and usage
├── layers/            # Lambda layers
├── packages/          # Reusable packages
├── scripts/           # Utility scripts
├── src/               # Source code
├── web/               # Web interface
├── Dockerfile.*       # Various MCP server containers
└── README.md          # This file
Install dependencies:
npm install
Set up environment variables:
cp .env.example .env # Edit .env with your configuration
Run tests:
npm test
This project includes DevContainer configurations in .devcontainer/ for VS Code and GitHub Codespaces:
# Open in VS Code with Dev Containers extension code . # Then: Cmd/Ctrl + Shift + P -> "Reopen in Container"
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Please read our CODE_OF_CONDUCT.md before contributing.
Issue: MCP server not starting
docker logs <container-id>Issue: AWS credentials not working
aws configureAWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEYIssue: Port already in use
docker ps and docker stop <container-id>MIT License - see LICENSE file for details.
Copyright (c) 2024 Sparre Sparrow
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For questions and support: