Sponsored by Deepsite.site

ZeMCP - Database Model Context Protocol Servers

Created By
aziouiz7 months ago
a collection of zero effort MCP servers
Content

ZeMCP - Database Model Context Protocol Servers

A collection of Model Context Protocol (MCP) servers for database interactions, providing secure and standardized access to Microsoft SQL Server and Oracle Database systems.

📦 Packages

This monorepo contains two npm packages:

🚀 Quick Start

Installation

# No installation required! Use npx to run directly:
npx zemcp-mssql
npx zemcp-oracle

# Or install globally if preferred:
npm install -g zemcp-mssql
npm install -g zemcp-oracle

Usage

Both servers are configured via environment variables. See individual package documentation for detailed configuration:

Basic Examples:

# Microsoft SQL Server
export DB_HOST=localhost DB_PORT=1433 DB_NAME=mydb DB_USER=sa DB_PASSWORD=mypass
npx zemcp-mssql

# Oracle Database  
export DB_USER=sys DB_PASSWORD=mypass DB_CONNECT_STRING=localhost:1521/XEPDB1
npx zemcp-oracle

🛠️ Development

Prerequisites

  • Node.js 18+
  • TypeScript
  • Access to SQL Server and/or Oracle Database

Setup

# Clone the repository
git clone https://github.com/aziouiz/zemcp.git
cd zemcp

# Install dependencies
npm install

# Build all packages
npm run build

Project Structure

zemcp/
├── zemcp-mssql/          # MSSQL MCP Server
│   ├── index.js          # Main server code
│   ├── package.json      # Package configuration
│   └── tsconfig.json     # TypeScript config
├── zemcp-oracle/         # Oracle MCP Server
│   ├── index.js          # Main server code
│   ├── package.json      # Package configuration
│   └── tsconfig.json     # TypeScript config
├── .github/workflows/    # GitHub Actions
├── docker-compose.yml    # Development databases
└── mcp.sample.json       # MCP configuration example

📋 Available Tools

Both servers provide the following MCP tools:

  • execute-query - Execute SELECT queries safely
  • execute-script - Execute multiple SQL statements (INSERT, UPDATE, DELETE, DDL)

Security Features

  • Input validation (when enabled)
  • Parameterized queries to prevent SQL injection
  • Environment-based configuration
  • Read-only and write operations clearly separated
  • Optional dangerous operation detection (disabled by default for performance)

🔧 MCP Client Integration

These servers are designed to work with MCP-compatible clients like VS Code's MCP extension.

Configuration: Each server provides specific MCP configuration examples in their respective documentation:

Quick Setup: Use npx zemcp-mssql or npx zemcp-oracle as the command in your MCP client configuration.

🚢 Deployment

Automatic NPM Publishing

This project uses GitHub Actions to automatically publish packages to npm when you create a new release tag.

Release Process

  1. Make your changes and commit them

  2. Run the release script:

    # Patch version (1.0.0 -> 1.0.1)
    ./release.sh patch
    
    # Minor version (1.0.0 -> 1.1.0)  
    ./release.sh minor
    
    # Major version (1.0.0 -> 2.0.0)
    ./release.sh major
    
  3. The script will:

    • Update package versions
    • Create a git tag
    • Push to GitHub
    • Trigger automatic npm publishing

Setup Requirements

  1. Create an npm account and generate an access token
  2. Add the token as NPM_TOKEN in your GitHub repository secrets
  3. Update the repository URL in package.json files

🐳 Development with Docker

Use the included docker-compose.yml for local development:

# Start databases
docker-compose up -d

# Stop databases  
docker-compose down

This provides:

  • SQL Server 2022 on port 1433
  • Oracle XE 21c on port 1521

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

📄 License

ISC License - see LICENSE file for details

🐛 Issues

Please report issues on the GitHub Issues page.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Tavily Mcp
Playwright McpPlaywright MCP server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Serper MCP ServerA Serper MCP Server
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
WindsurfThe new purpose-built IDE to harness magic
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.