Skip to content
Back to skills

097 Index 817e60d4

ASecurity

The **ContextForge Gateway** includes a collection of **high-performance sample MCP servers** built in different programming languages. These servers serve multiple purposes: demonstrating best practices for MCP implementation, providing ready-to-use tools for testing and development, and showcasing the performance characteristics of different language ecosystems. > **Perfect for testing, learning, and production use** - each server is optimized for speed, reliability, and demonstrates langua...

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
devopsjavascripttypescriptpythonrustgojavabashdockertestingdebugging

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 097-index_817e60d4 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 097 Index 817e60d4?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 097 Index 817e60d4
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-097-index-817e60d4/badge)](https://www.skillsdirectory.com/skills/tools-only-097-index-817e60d4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# 🎯 Sample MCP Servers

The **ContextForge Gateway** includes a collection of **high-performance sample MCP servers** built in different programming languages. These servers serve multiple purposes: demonstrating best practices for MCP implementation, providing ready-to-use tools for testing and development, and showcasing the performance characteristics of different language ecosystems.

> **Perfect for testing, learning, and production use** - each server is optimized for speed, reliability, and demonstrates language-specific MCP patterns.

---

## 🌟 Available Servers

### 🦫 Fast Time Server (Go)
**`mcp-servers/go/fast-time-server`** - Ultra-fast timezone and time conversion tools

- **Language:** Go 1.21+
- **Performance:** Sub-millisecond response times
- **Transport:** stdio, HTTP, SSE, dual-mode
- **Tools:** `get_system_time`, timezone conversions with DST support
- **Container:** `ghcr.io/ibm/fast-time-server:latest`

**[πŸ“– Full Documentation β†’](go/fast-time-server.md)**

#### Quick Start
```bash
# Docker (recommended)
docker run --rm -it -p 8888:8080 \
  ghcr.io/ibm/fast-time-server:latest \
  -transport=dual -log-level=debug

# From source
cd mcp-servers/go/fast-time-server
make build && make run
```

---

## πŸš€ Planned Samples

### 🐍 Python Samples
- **Fast Calculator Server** - Mathematical operations and conversions
- **System Info Server** - OS and hardware information tools
- **File Operations Server** - Safe file system operations

### 🟨 JavaScript/TypeScript Samples
- **Web Scraper Server** - URL content extraction and parsing
- **JSON Transformer Server** - Data transformation and validation
- **API Client Server** - REST API interaction tools

### πŸ¦€ Rust Samples
- **High-Performance Parser Server** - Ultra-fast text and data parsing
- **Crypto Utils Server** - Cryptographic operations and hashing
- **Network Tools Server** - Network diagnostics and utilities

### β˜• Java Samples
- **Enterprise Integration Server** - Database and messaging operations
- **Document Processor Server** - PDF and office document handling
- **Monitoring Server** - Application metrics and health checks

---

## 🎯 Use Cases

### **πŸ§ͺ Testing & Development**
- **Protocol Testing** - Validate MCP client implementations
- **Performance Benchmarking** - Compare language runtime characteristics
- **Integration Testing** - Test gateway federation and tool routing

### **πŸ“š Learning & Reference**
- **Best Practices** - Language-specific MCP implementation patterns
- **Architecture Examples** - Different transport and authentication approaches
- **Performance Optimization** - Learn optimization techniques per language

### **🏭 Production Ready**
- **Horizontal Scaling** - All servers support container orchestration
- **Monitoring Integration** - Built-in health checks and metrics
- **Security Hardened** - Authentication, input validation, and safe defaults

---

## 🌐 Gateway Integration

All sample servers are designed to integrate seamlessly with ContextForge:

!!! tip "Gateway URL"
    - Direct installs (`uvx`, pip, or `docker run`): `http://localhost:4444`
    - Docker Compose (nginx proxy): `http://localhost:8080`

### **Direct Registration**
```bash
# Set the gateway base URL
export BASE_URL="http://localhost:4444"
# export BASE_URL="http://localhost:8080"  # docker-compose with nginx

# Register any sample server with the gateway
curl -X POST -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"name":"sample_server","url":"http://localhost:8080/sse"}' \
     $BASE_URL/gateways
```

### **Via Translate Bridge**
```bash
# Expose stdio servers over SSE using mcpgateway.translate
python3 -m mcpgateway.translate \
  --stdio "path/to/sample-server" \
  --expose-sse \
  --port 8002
```

### **Testing with Wrapper**
```bash
# Test through mcpgateway.wrapper
export MCP_AUTH=$MCPGATEWAY_BEARER_TOKEN
export MCP_SERVER_URL="$BASE_URL/servers/UUID_OF_SERVER_1"
python3 -m mcpgateway.wrapper
```

---

## πŸ›  Development Guidelines

### **Adding New Sample Servers**

Each sample server should follow these conventions:

#### **Directory Structure**
```
mcp-servers/
β”œβ”€β”€ go/
β”‚   └── your-server/
β”‚       β”œβ”€β”€ main.go
β”‚       β”œβ”€β”€ Makefile
β”‚       β”œβ”€β”€ Dockerfile
β”‚       └── README.md
β”œβ”€β”€ python/
β”‚   └── your-server/
β”‚       β”œβ”€β”€ main.py
β”‚       β”œβ”€β”€ pyproject.toml
β”‚       β”œβ”€β”€ Dockerfile
β”‚       └── README.md
└── typescript/
    └── your-server/
        β”œβ”€β”€ src/index.ts
        β”œβ”€β”€ package.json
        β”œβ”€β”€ Dockerfile
        └── README.md
```

#### **Required Features**
- βœ… **Multiple transports** - stdio, SSE, HTTP support
- βœ… **Container ready** - Dockerfile with multi-stage builds
- βœ… **Health checks** - `/health` endpoint for monitoring
- βœ… **Authentication** - Bearer token support for web transports
- βœ… **Logging** - Configurable log levels
- βœ… **Documentation** - Complete usage examples and API docs

#### **Performance Targets**
- **Response Time:** < 10ms for simple operations
- **Memory Usage:** < 50MB baseline memory footprint
- **Startup Time:** < 1 second cold start
- **Throughput:** > 1000 requests/second under load

---

## πŸ“Š Performance Comparison

| Server | Language | Response Time | Memory | Binary Size | Cold Start |
|--------|----------|---------------|---------|-------------|------------|
| fast-time-server | Go | **0.5ms** | 8MB | 12MB | 100ms |
| (planned) | Python | ~2ms | 25MB | N/A | 300ms |
| (planned) | TypeScript | ~3ms | 35MB | N/A | 400ms |
| (planned) | Rust | **0.3ms** | 4MB | 8MB | 50ms |
| (planned) | Java | ~5ms | 45MB | 25MB | 800ms |

*Benchmarks measured on standard GitHub Actions runners*

---

## 🀝 Contributing

We welcome contributions of new sample servers!

### **Contribution Process**

1. **Choose a language** and create the directory structure
2. **Implement core MCP functionality** following our guidelines
3. **Add comprehensive tests** and performance benchmarks
4. **Create documentation** following the fast-time-server example
5. **Submit a pull request** with your implementation

### **Language Priorities**

We're particularly interested in:

- **Python** - Most popular for AI/ML tooling
- **TypeScript** - Web-native integration
- **Rust** - Maximum performance critical applications
- **Java** - Enterprise integration scenarios

---

## πŸ“š Resources

### **MCP Specification**
- [Model Context Protocol](https://modelcontextprotocol.io/)
- [JSON-RPC 2.0 Specification](https://www.jsonrpc.org/specification)

### **Gateway Documentation**
- [ContextForge Gateway](../../index.md)
- [mcpgateway.wrapper Usage](../mcpgateway-wrapper.md)
- [mcpgateway.translate Bridge](../mcpgateway-translate.md)

### **Development Tools**
- [MCP Inspector](https://github.com/modelcontextprotocol/inspector) - Interactive protocol debugging
- [mcpgateway.translate Bridge](../mcpgateway-translate.md) - stdio ↔ SSE/Streamable HTTP bridge
- [UV](https://docs.astral.sh/uv/) - Fast Python package management

---

## πŸ”— Quick Links

- [🦫 **Fast Time Server (Go)** β†’](go/fast-time-server.md)

---

*Want to add a new sample server? [Open an issue](https://github.com/ibm/mcp-context-forge/issues) or submit a pull request!*

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…