An AWS Labs Model Context Protocol (MCP) server for Amazon ElastiCache Memcached
Project description
Memcached MCP Server
MCP server for interacting with Amazon ElastiCache Memcached through a secure and reliable connection
Features
Complete Memcached Protocol Support
- Full support for all standard Memcached operations
- Secure communication with SSL/TLS encryption
- Automatic connection management and pooling
- Built-in retry mechanism for failed operations
Robust Connection Management
- Configurable connection settings and timeouts
- Automatic connection retrying with customizable parameters
- Connection pooling for improved performance
- Comprehensive error handling and recovery
Security and Reliability
- SSL/TLS support for encrypted communication
- Certificate-based authentication
- Configurable verification settings
- Automatic handling of connection failures
Prerequisites
- Install
uvfrom Astral or the GitHub README - Install Python using
uv python install 3.10 - Access to a Memcached server (local or Amazon ElastiCache)
- For Amazon ElastiCache, you need appropriate AWS credentials and permissions
- For local development, ensure Memcached is installed and running
Installation
Here are some ways you can work with MCP (e.g. for Amazon Q Developer CLI MCP, ~/.aws/amazonq/mcp.json):
{
"mcpServers": {
"awslabs.memcached-mcp-server": {
"command": "uvx",
"args": ["awslabs.memcached-mcp-server@latest"],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR",
"MEMCACHED_HOST": "your-memcached-host",
"MEMCACHED_PORT": "11211"
},
"disabled": false,
"autoApprove": []
}
}
}
or docker after a successful docker build -t awslabs/memcached-mcp-server .:
{
"mcpServers": {
"awslabs.memcached-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"--interactive",
"--env",
"FASTMCP_LOG_LEVEL=ERROR",
"--env",
"MEMCACHED_HOST=your-memcached-host",
"--env",
"MEMCACHED_PORT=11211",
"awslabs/memcached-mcp-server:latest"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}
Configuration
Basic Connection Settings
Configure the connection using these environment variables:
# Basic settings
MEMCACHED_HOST=127.0.0.1 # Memcached server hostname
MEMCACHED_PORT=11211 # Memcached server port
MEMCACHED_TIMEOUT=1 # Operation timeout in seconds
MEMCACHED_CONNECT_TIMEOUT=5 # Connection timeout in seconds
MEMCACHED_RETRY_TIMEOUT=1 # Retry delay in seconds
MEMCACHED_MAX_RETRIES=3 # Maximum number of retry attempts
SSL/TLS Configuration
Enable and configure SSL/TLS support with these variables:
# SSL/TLS settings
MEMCACHED_USE_TLS=true # Enable SSL/TLS
MEMCACHED_TLS_CERT_PATH=/path/to/client-cert.pem # Client certificate
MEMCACHED_TLS_KEY_PATH=/path/to/client-key.pem # Client private key
MEMCACHED_TLS_CA_CERT_PATH=/path/to/ca-cert.pem # CA certificate
MEMCACHED_TLS_VERIFY=true # Enable cert verification
The server automatically handles:
- Connection establishment and management
- SSL/TLS encryption when enabled
- Automatic retrying of failed operations
- Timeout enforcement and error handling
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awslabs_memcached_mcp_server-0.1.1.tar.gz.
File metadata
- Download URL: awslabs_memcached_mcp_server-0.1.1.tar.gz
- Upload date:
- Size: 64.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a03bbd36daa6c3c91a4b636b661f2b234d463137034ddb354591add54a5ba291
|
|
| MD5 |
206e73c945d5ce149e02ed9c03cd709e
|
|
| BLAKE2b-256 |
7a8f0db2d9f2a4513737915b8d259594035f160dfa229a753c9ed6415a0cdaa1
|
Provenance
The following attestation bundles were made for awslabs_memcached_mcp_server-0.1.1.tar.gz:
Publisher:
release.yml on awslabs/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awslabs_memcached_mcp_server-0.1.1.tar.gz -
Subject digest:
a03bbd36daa6c3c91a4b636b661f2b234d463137034ddb354591add54a5ba291 - Sigstore transparency entry: 214147243
- Sigstore integration time:
-
Permalink:
awslabs/mcp@45bd5a995ff6ebecd5478c88fe03f9ad430b6d6a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@45bd5a995ff6ebecd5478c88fe03f9ad430b6d6a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file awslabs_memcached_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: awslabs_memcached_mcp_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0e30bd3e50206a3a799a15b626ceda70ce909143a5008236968eca20c974849
|
|
| MD5 |
089746ea94ad95e0cdba36bb1e471e84
|
|
| BLAKE2b-256 |
76baffa4c0558e98c5d4f11606eae9162f2c9195dc71ed636ce8811b828c7ecf
|
Provenance
The following attestation bundles were made for awslabs_memcached_mcp_server-0.1.1-py3-none-any.whl:
Publisher:
release.yml on awslabs/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awslabs_memcached_mcp_server-0.1.1-py3-none-any.whl -
Subject digest:
c0e30bd3e50206a3a799a15b626ceda70ce909143a5008236968eca20c974849 - Sigstore transparency entry: 214147247
- Sigstore integration time:
-
Permalink:
awslabs/mcp@45bd5a995ff6ebecd5478c88fe03f9ad430b6d6a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@45bd5a995ff6ebecd5478c88fe03f9ad430b6d6a -
Trigger Event:
workflow_dispatch
-
Statement type: