MCP Server
A Node.js/TypeScript server implementing the Model Context Protocol that provides integrations with GitHub and Notion, allowing automated workflow between these platforms via API endpoints.
README
MCP (Model Context Protocol) Server
A Node.js/TypeScript server that implements the Model Context Protocol with integrations for GitHub and Notion.
🚀 Features
- Express.js Server with TypeScript support
- GitHub Integration using Octokit REST API
- Notion Integration for task management
- Docker Support for containerized deployment
- Webhook Endpoints for GitHub event handling
📋 Prerequisites
- Node.js 18+
- Docker (optional)
- GitHub Personal Access Token
- Notion API Key and Database ID
🛠️ Installation
-
Clone the repository
git clone <your-repo-url> cd MCP -
Install dependencies
npm install -
Set up environment variables
cp env.example .env # Edit .env with your API keys -
Build the project
npm run build
🔧 Configuration
Environment Variables
Create a .env file with the following variables:
# GitHub Personal Access Token
GITHUB_TOKEN=your_github_token_here
# Notion API Key
NOTION_API_KEY=your_notion_api_key_here
# Notion Database ID
NOTION_DATABASE_ID=your_database_id_here
# Node environment
NODE_ENV=development
API Keys Setup
-
GitHub Token:
- Go to https://github.com/settings/tokens
- Create a new token with
reposcope
-
Notion Integration:
- Go to https://www.notion.so/my-integrations
- Create a new integration
- Share your database with the integration
🏃♂️ Running the Application
Development Mode
npm run dev
Production Mode
npm run build
npm start
Docker
# Build and run
docker-compose up --build
# Run in background
docker-compose up -d
📡 API Endpoints
- GET
/- Health check endpoint - POST
/webhook/github- GitHub webhook handler
🛠️ Available Tools
GitHub Tools (src/tools/github.ts)
createIssueComment()- Post comments on GitHub issuesgetIssue()- Get issue detailslistIssues()- List repository issues
Notion Tools (src/tools/notion.ts)
createTaskInNotion()- Create tasks in Notion databasegetPage()- Get page detailsgetDatabase()- Get database structurequeryDatabase()- Query database
🧪 Testing
Test the webhook endpoint:
curl -X POST http://localhost:3000/webhook/github \
-H "Content-Type: application/json" \
-d '{
"title": "Test Issue",
"body": "This is a test issue",
"number": 123
}'
📁 Project Structure
MCP/
├── src/
│ ├── tools/
│ │ ├── github.ts # GitHub API integration
│ │ └── notion.ts # Notion API integration
│ ├── index.ts # Main server file
│ └── workflow.ts # GitHub issue handling
├── dist/ # Compiled JavaScript
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose setup
├── tsconfig.json # TypeScript configuration
└── package.json # Dependencies and scripts
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
📄 License
This project is licensed under the ISC License.
🔗 Links
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.