build_club_mcp
MCP server with example tools for arithmetic and greeting, designed for deployment on Amazon Bedrock AgentCore Runtime with OAuth authentication.
README
MCP Server on Amazon Bedrock AgentCore Runtime (Minimal README)
This project demonstrates how to build, test, and deploy an MCP (Model Context Protocol) server onto Amazon Bedrock AgentCore Runtime with OAuth (Cognito) authentication. It also includes local and remote MCP clients for testing tool discovery and invocation.
Features
-
MCP Server built with FastMCP
-
Three example tools:
add_numbersmultiply_numbersgreet_user
-
Local MCP client for testing
-
Cognito-secured AgentCore Runtime deployment
-
Remote client with automatic JWT refresh
-
End-to-end demo: build → deploy → authenticate → invoke tools
Project Structure
mcp_server_project/
├── mcp_server.py # MCP server implementation
├── my_mcp_client.py # Local testing client
├── my_mcp_client_remote.py # Remote (Cognito-authenticated) client
├── invoke_mcp_tools.py # Remote invocation demo (tool calls)
├── requirements.txt
└── notebooks/
├── hosting_mcp_server.ipynb # Main tutorial notebook
└── runtime_with_strands_and_bedrock.ipynb # Additional runtime examples
Local Development
Start the MCP server
python mcp_server.py
List available tools
python my_mcp_client.py
Deploy to AgentCore Runtime
Deployment is handled via the AgentCore Starter Toolkit, which:
- Generates a Dockerfile
- Builds and pushes container to ECR
- Creates an AgentCore Runtime
- Configures OAuth via Cognito
Run the deployment steps in the accompanying notebook:
- Hosting MCP Server on Amazon Bedrock AgentCore Runtime – OAuth Inbound Authentication
This notebook creates:
- Cognito User Pool + App Client
- JWT-based authorizer configuration
- AgentCore Runtime instance
- SSM + Secrets Manager entries for connection details
Remote Invocation
Once deployed, you can test the MCP server using:
python my_mcp_client_remote.py
Or invoke specific tools:
python invoke_mcp_tools.py
The clients automatically:
- Fetch Agent ARN from SSM
- Fetch Cognito tokens (and refresh when needed)
- Connect to the MCP server over streamable HTTP
- Perform
initialize,list_tools, andcall_tooloperations
Requirements
- Python 3.10+
- AWS credentials configured
- Docker
- Amazon Bedrock AgentCore Starter Toolkit
- FastMCP & MCP libraries
Full dependencies listed in:
- requirements.txt
Notebooks reference:
-
AWS Show & Tell session: AgentCore + Gateway deep dive
-
AgentCore Runtime tutorial with Strands Agents
Cleanup
To remove deployed resources, use the cleanup section in the notebook:
- Deletes AgentCore runtime
- Removes ECR repo
- Removes SSM parameter + Secrets Manager entries
- always check manually via thee AWS console to ensure that the cleanup has been effective
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.