Cover image
Try Now
2025-04-10

Código de muestra usando Gen-AI (Bedrock) con MCP-Server

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

move to https://github.com/jikang-jeong/mcp_bedrock_sample


This sample code project is a fork from [https://github.com/aws-samples/Sample-Model-Context-Protocol-Demos]'s repository.

  • add postgres db-conn sample
  • add web search (wikipedia) sample

✅ Prerequisites

  • Python 3.13+
  • PostgreSQL (via Docker)

Start PostgreSQL with Docker Compose

  docker-compose -f docker-compose/docker-compose.yml up -d

Initialize the Database

  • SQL initialization script: /init/init.sql
    (Includes both DDL and DML)

⚡ Quick Start

  1. Set up a virtual environment (recommended):
  python -m venv venv
  source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
  pip install -r init/requirements.txt
  1. Run
  python3 main.py

🐘 PostgreSQL Driver Issue (psycopg)

만약, 아래 오류가 출력된다면

ImportError: no pq wrapper available.
Attempts made:
- couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
- couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
- couldn't import psycopg 'python' implementation: libpq library not found

아래 PostgreSQL client libraries 설치하십시오. 또는 postgres 모듈을 변경 사용해도 됩니다.

macOS:

  brew install libpq
  brew link --force libpq

Ubuntu:

  sudo apt-get install libpq-dev

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • HiveNexus
  • Un bot de chat de IA para equipos pequeños y medianos, que apoyan modelos como Deepseek, Open AI, Claude y Gemini. 专为中小团队设计的 ai 聊天应用 , 支持 Deepseek 、 Open ai 、 Claude 、 Géminis 等模型。

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

    Reviews

    2 (1)
    Avatar
    user_U23oMNvf
    2025-04-17

    As a loyal user of the aws-sample-gen-ai-mcp-server, I am truly impressed by its robust performance and seamless integration capabilities. Provided by jikang-jeong, this server is a crucial asset for any project requiring advanced AI functions. The clarity in the documentation and ease of setup make it a must-have tool for developers. Highly recommend checking it out at https://github.com/jikang-jeong/aws-sample-gen-ai-mcp-server.