Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / MCP Servers & Tools

MCP Servers & Tools

Expose PayCaptain Employee Data as an MCP Server for Claude

Runs as an MCP server that lets Claude search, fetch and update employee records through the PayCaptain API, stripping sensitive fields before returning data.

What it does

## Try It Out! ### This n8n demonstrates how any organisation can quickly and easily build and offer MCP servers to their customers or internal staff to improve productivity. This MCP example uses PayCaptain.com as an example and shows how to create an MCP server which can search for and update employee data. ### How it works * A MCP server trigger is used and connected to 3 custom workflow tools: Search Employee, Get Employee by ID and Update Employee. * Each tool makes calls to the PayCaptain API to perform their respective tasks. Extra care is performed to strip out sensitive data and ensure we're not sharing too much. * The Update Employee too also guards against updating fields which would preferably remain readonly. When you control the MCP server, you can determine behaviour of the tool. * Finally, a Google Sheet node is used to log all operations for later audit. This will add a tiny bit of latency but recommended if sensitive data is being accessed. ### How to use * This MCP server allows any compatible MCP client to manage their PayCaptain employee database. You will need to have a PayCaptain account and developer key to use it. * Connect your MCP client by following the n8n guidelines here - {{ $env.WEBHOOK_URL }} * Try the following queries in your MCP client: * "When did Sarah start here employment at the company?" * "Does Jack work Wednesdays or Fridays?" * "Please update Tracy's NI number to ABCD123456" ### Requirements * PayCaptain Account and Developer Key. * Google Sheets to log actions for later audit. * MCP Client or Agent for usage such as Claude Desktop - {{ $env.WEBHOOK_URL }} ### Customising this workflow * Add or remove employee attributes as required for your user case. * If Google Sheets is too slow, consider an API call to a faster service to log calls to the MCP server. * Remember to set the MCP server to require credentials before going to production and sharing this MCP server with others!

The steps

  1. When Executed by Another Workflow
  2. Operation
  3. Paycaptain MCP Server
  4. Update Employee
  5. Get Employee
  6. Get Employees
  7. Search Employees
  8. Log Call
  9. Filter Matches
  10. Aggregate Search Results
  11. Get Employees1
  12. Filter Matching ID
  13. Strip Sensitive Fields1
  14. Strip Sensitive Fields

20 steps in total.

Similar automations