mcp-server--HTTP-API-integrated-with-windsurf

VIGNESH-2232005/mcp-server--HTTP-API-integrated-with-windsurf

3.2

If you are the rightful owner of mcp-server--HTTP-API-integrated-with-windsurf and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

An HTTP-based MCP server that manages employee data via an External API and secures access using Google Authentication.

Employee Management MCP Server (with External API & Google OAuth)

An HTTP-based MCP server that manages employee data via an External API and secures access using Google Authentication.

Architecture

  1. Mock API Server (:4000): Simulates an external database/API. Stores data in data/api_db.json.
  2. Main MCP Server (:3000): Connects Windsurf to the API and handles Authentication.
  3. Bridge (stdio): Connects Windsurf IDE to the Main Server.

Prerequisites

  • Node.js (v18+)
  • Google Cloud Credentials

How to Run (Requires 2 Terminals)

Terminal 1: Message Storage (The API)

This must run first. It acts as the database.

npm run api

(Runs on port 4000)

Terminal 2: The Logic (The Server)

This connects the AI to the API.

npm start

(Runs on port 3000)

Terminal 3: The Client (Optional)

To test it manually without Windsurf:

npm run client

Windsurf Integration

  1. Ensure both Terminal 1 and Terminal 2 are running.
  2. Restart Windsurf.
  3. Login: A browser window will open.
  4. Chat: Ask "List all employees".

Project Structure

  • src/api_server.js: The Mock API (Data Store).
  • src/server.js: The Main MCP Server (Logic & Auth).
  • src/employees.js: Logic to fetch data from API.
  • src/bridge.js: Integration script for Windsurf.