Skip to content
Paid Prompt
Prompt Spotlight
CLAUDE-CODE // Advanced

MCP Server Architecture

Design a Model Context Protocol server for custom AI integrations.

Advanced

Difficulty

Skill level required

12/20/2024

Published

Creation date

CLAUDE-CODE

AI Tool

Recommended platform

Design an MCP (Model Context Protocol) server for: [YOUR USE CASE]

**Integration Goals:**
- Data source: [database/API/file system/etc.]
- Key operations: [what should the AI be able to do]
- Security requirements: [authentication, permissions]

Provide a complete design:

1. **Resources** (read-only data exposure)
   - List resources to expose (URI patterns)
   - Schema for each resource type
   - Pagination/filtering strategies

2. **Tools** (actions the AI can take)
   - Tool definitions with input schemas
   - Validation requirements
   - Side effect descriptions

3. **Prompts** (predefined interaction patterns)
   - Common workflows as prompt templates
   - Context injection patterns
   - Dynamic prompt generation

4. **Server Configuration**
   - Transport (stdio/HTTP/WebSocket)
   - Authentication approach
   - Rate limiting strategy

5. **Error Handling**
   - Error response schemas
   - Retry guidance for clients
   - Graceful degradation

6. **TypeScript Implementation Skeleton**
   - Main server structure
   - Handler patterns
   - Type definitions

Output as a complete architectural design I can implement.

Use Case

Developers building custom MCP servers for AI integrations.

Tags

mcpprotocolintegrationserver
Related Prompts

Continue Your Exploration

Other prompts in the Agent Development category you might find useful.

claude-code

Claude Code Project Setup

Initialize a project with optimal CLAUDE.md configuration for autonomous development.

Intermediateclaude-codeconfiguration

Use case: Developers setting up Claude Code for new projects with best practices.

cursor

Cursor Rules File Generator

Create effective .cursorrules for consistent AI-assisted development.

Intermediatecursorrules

Use case: Teams standardizing their Cursor AI experience across developers.

claude-code

Agentic Workflow Architecture

Design multi-step autonomous workflows for complex development tasks.

Advancedagenticworkflow

Use case: Developers building sophisticated autonomous development pipelines.