el-Badr07/github_mcp_server
If you are the rightful owner of github_mcp_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
MCP Multi-Tool Server is a comprehensive Model Context Protocol server built with TypeScript, offering a suite of tools for various computational and data retrieval tasks.
Calculator
Evaluates mathematical expressions safely
Database Query
Executes read-only SQL queries on PostgreSQL
Web Search
AI-powered web search using Tavily API
Code Execution
Runs JavaScript code in a sandboxed environment
MCP Multi-Tool Server
A comprehensive Model Context Protocol (MCP) server built with TypeScript that provides multiple tools for calculations, database queries, web search, and code execution.
✨ Features
🔧 Available Tools
- Calculator (
calculate
) - Evaluates mathematical expressions safely - Database Query (
query-database
) - Executes read-only SQL queries on PostgreSQL - Web Search (
web-search
) - AI-powered web search using Tavily API - Code Execution (
execute-code
) - Runs JavaScript code in a sandboxed environment
📦 Installation
- Clone the repository and install dependencies:
git clone <repository_url>
cd mcp_ts
npm install
- Copy the example environment file and configure:
cp .env.example .env
- Build the project:
npm run build
🚀 Usage
Environment Setup
Set up your environment variables for database access and API keys:
# Database configuration
export DB_HOST=localhost
export DB_PORT=5432
export DB_NAME=your_database
export DB_USER=your_username
export DB_PASSWORD=your_password
# Tavily API key for web search
export TAVILY_API_KEY=your_tavily_api_key
Running the Server
The server uses HTTP transport and listens on port 3000:
npm run start
The server will be available at http://localhost:3000/mcp
Testing with Automated Client
Run the comprehensive test suite:
npm run test
This will test all tools including:
- Mathematical calculations
- Web search with AI-powered results
- Code execution sandbox
- Database connectivity (if configured)
Interactive Testing
For manual testing and exploration:
npm run client
Interactive Commands
Command | Description | Example |
---|---|---|
help | Show all available commands | help |
list | List all registered tools | list |
calc <expression> | Calculate math expression | calc 2 + 3 * 4 |
web-search <query> | Search the web with AI | web-search TypeScript tutorial |
code <javascript> | Execute JavaScript | code Math.sqrt(16) |
db <sql> | Execute SQL query | db SELECT version() |
quit | Exit the client | quit |