Connect your AI assistants (Q CLI, Q Developer) to AWS Bedrock Knowledge Bases using Model Context Protocol (MCP).
- Understand MCP server fundamentals
- Connect MCP servers to AWS Bedrock Knowledge Base
- Integrate with AI assistants (Q CLI, Q Developer)
- Create comprehensive documentation and testing
Want to use the MCP server right now?
π Go to Phase 3 Quick Start Instructions π
This will get your MCP server running with Q CLI and Q Developer in minutes.
Want to learn how MCP servers work? This project teaches you step-by-step:
Best for: New programmers, those unfamiliar with git
# Clone the repository
git clone <repository-url>
cd mcp-bedrock-kb
# Start with Phase 1
cd examples/phase-1-foundation
# Follow the README in that folderAdvantages:
- No git knowledge required
- Complete working examples
- Can't accidentally break previous work
- Easy to compare phases side-by-side
Best for: Developers familiar with git, want to see progression
# Clone the repository
git clone <repository-url>
cd mcp-bedrock-kb
# Start with Phase 1
git checkout phase-1-complete
# Follow lessons/01-mcp-basics.md
# Later, move to Phase 2
git checkout phase-2-completeAdvantages:
- Learn professional git workflow
- See exact code changes between phases
- Understand development progression
- Practice version control
Status: Complete
- Basic MCP server structure
- Tool registration and handling
- Testing methodology
- Comprehensive documentation
Files: examples/phase-1-foundation/ or git checkout phase-1-complete
Status: Complete
- Connect to Bedrock Knowledge Base
- Real query implementation
- Response formatting
- AWS authentication
Files: examples/phase-2-aws-integration/ or git checkout phase-2-complete
Status: Complete
- Configure MCP server for Q CLI
- Virtual environment dependency management
- Integration testing and validation
- Troubleshooting common issues
Files: examples/phase-3-q-cli-integration/ or git checkout phase-3-complete
Status: In Development
- Configure MCP server for Q Developer (IDE)
- VS Code integration setup
- Development workflow enhancement
- Advanced IDE features
Files: examples/phase-4-q-developer-integration/ or git checkout phase-4-complete
- Python 3.8+
- AWS CLI configured with credentials
- AWS Bedrock Knowledge Base (optional - we'll help you create one)
- Choose your learning path above
- Follow the README in your chosen starting point
- Work through lessons sequentially
- Experiment and modify the code!
mcp-bedrock-kb/
βββ examples/ # Complete phase examples
β βββ phase-1-foundation/ # Standalone working example
β βββ phase-2-aws-integration/ # AWS Bedrock KB integration
β βββ phase-3-q-cli-integration/ # Q CLI MCP server setup
βββ src/ # Current development
βββ lessons/ # Step-by-step tutorials
β βββ 01-mcp-basics.md
β βββ 02-testing-basics.md
β βββ 03-aws-integration.md
βββ explanations/ # Detailed code explanations
β βββ server-explained.md
β βββ test-explained.md
β βββ aws-integration-explained.md
βββ tests/ # Test files
β βββ test_basic.py # Phase 1 reference
β βββ test_mcp_protocol.py # Current working test
β βββ test_q_cli_integration.py # Q CLI integration test
β βββ comparative-testing/ # Knowledge base value demonstration
β βββ development-task-test.md
β βββ implementation_with_kb.py
β βββ implementation_without_kb.py
β βββ comparative-analysis.md
βββ README.md # This file
βββ implementation-plan.md # Development roadmap
- Line-by-line explanations: Every line of code explained for new programmers
- Why-focused learning: Understanding the reasoning behind each decision
- Real-world testing: Learn to test MCP servers properly
- Professional practices: Git workflow, documentation, error handling
This is an educational project. Feel free to:
- Suggest improvements to explanations
- Report unclear documentation
- Share your learning experience
- Propose additional examples
Happy Learning! π
Choose your path above and start building MCP servers that enhance AI assistants with your own knowledge bases.