MariaDB Reader MCP Server

MariaDB Reader MCP Server

Provides tools for AI assistants to explore and interact with MariaDB databases, allowing them to list databases, view tables, inspect schema definitions, and query data.

Category
Visit Server

Tools

list_databases

접근 가능한 모든 데이터베이스 목록을 보여줍니다.

list_tables

특정 데이터베이스 내의 모든 테이블 목록을 보여줍니다.

get_table_schema

특정 테이블의 스키마(컬럼 정의)를 가져옵니다.

query_table

특정 테이블에서 데이터를 조회합니다 (제한된 행 반환).

README

MariaDB Reader MCP Server

이 프로젝트는 MariaDB 데이터베이스를 탐색하고 상호작용하기 위한 Model Context Protocol (MCP) 서버입니다. 이 서버는 Cline과 같은 AI 어시스턴트가 MariaDB 데이터베이스에 접근하여 정보를 조회할 수 있도록 도구를 제공합니다.

기능

이 MCP 서버는 다음과 같은 도구를 제공합니다:

  • list_databases: 접근 가능한 모든 데이터베이스의 목록을 반환합니다.
  • list_tables: 지정된 데이터베이스 내의 모든 테이블 목록을 반환합니다.
    • 입력: database (문자열, 필수) - 테이블 목록을 조회할 데이터베이스 이름.
  • get_table_schema: 지정된 테이블의 스키마(컬럼 정의)를 반환합니다.
    • 입력:
      • database (문자열, 필수) - 테이블이 속한 데이터베이스 이름.
      • table (문자열, 필수) - 스키마를 조회할 테이블 이름.
  • query_table: 지정된 테이블에서 데이터를 조회합니다. 기본적으로 처음 100개의 행을 반환합니다.
    • 입력:
      • database (문자열, 필수) - 테이블이 속한 데이터베이스 이름.
      • table (문자열, 필수) - 데이터를 조회할 테이블 이름.
      • limit (숫자, 선택) - 반환할 최대 행 수 (기본값: 100).

설정

이 서버를 사용하려면 GitHub 저장소를 클론하고, MCP 클라이언트(예: VS Code 확장 프로그램)의 설정 파일에 서버 정보를 등록해야 합니다. 이 저장소에는 미리 빌드된 실행 파일(build/index.js)이 포함되어 있어 별도의 빌드 과정이 필요하지 않습니다.

  1. 저장소 클론: 원하는 위치에 이 저장소를 클론합니다.
    git clone https://github.com/moosin76/mcp_server_mariadb_reader.git
    
  2. MCP 설정 파일 수정:

설정 예시:

{
  "mcpServers": {
    "mcp_server_mariadb_reader": {
      "command": "node",
      "args": ["<클론된 저장소 경로>/build/index.js"], // 클론된 저장소 내 build/index.js 파일 경로
      "env": {
        "MARIADB_HOST": "YOUR_DB_HOST",         // MariaDB 호스트 주소
        "MARIADB_PORT": "YOUR_DB_PORT",         // MariaDB 포트 번호 (예: "3306")
        "MARIADB_USER": "YOUR_DB_USER",         // MariaDB 사용자 이름
        "MARIADB_PASSWORD": "YOUR_DB_PASSWORD", // MariaDB 비밀번호
        "MARIADB_DATABASE": "YOUR_DEFAULT_DB"   // (선택) 기본 데이터베이스 이름
      },
      "disabled": false,
      "autoApprove": []
    }
    // 다른 MCP 서버 설정...
  }
}

주의:

  • <클론된 저장소 경로> 부분을 실제 저장소를 클론한 로컬 경로로 변경해야 합니다. (예: C:/Users/YourUser/Documents/GitHub/mcp_server_mariadb_reader)
  • env 객체 내의 MariaDB 연결 정보를 실제 환경에 맞게 수정해야 합니다.

개발 (소스 코드 수정 시)

이 저장소에는 빌드된 파일이 포함되어 있으므로, 서버를 사용하기 위해 아래 단계를 수행할 필요는 없습니다. 소스 코드(src 디렉토리)를 직접 수정하고 변경 사항을 적용하려면 다음 단계를 따르세요.

  1. 의존성 설치 (최초 한 번 또는 package.json 변경 시):
    npm install
    
  2. 수정 후 빌드:
    npm run build
    
    • 이 명령은 src 디렉토리의 TypeScript 코드를 build 디렉토리의 JavaScript 코드로 컴파일합니다.
  3. (선택) 개발 중 변경 사항 감지 및 자동 빌드:
    npm run watch
    

라이선스

이 프로젝트는 [라이선스 정보 입력] 라이선스 하에 배포됩니다.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured