Build your own CUSTOM API MCP server
Ready for 3.0What this workflow does
This AI workflow has 20 nodes and runs when an MCP client calls one of its tools (plus 1 other trigger). Along the way it connects Google Sheets. It also calls api.paycaptain.com over HTTP.
How it runs
Trigger: When an MCP client calls one of its tools (plus 1 other trigger).
- Log Call (Google Sheets): append
- Operation (Switch): routes items into 3 branches
- Get Employees (HTTP Request): calls api.paycaptain.com
- Get Employees (HTTP Request): calls api.paycaptain.com
- Valid Fields Only (Edit Fields (Set)): sets 1 field: values
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Has Valid Request? (If): checks a condition and branches into true / false
- Strip Sensitive Fields (Edit Fields (Set)): sets 20 fields: company, hrEmployeeId, payrollCode…
- Strip Sensitive Fields (Edit Fields (Set)): sets 20 fields: company, hrEmployeeId, payrollCode…
…plus 5 more steps. See the full node list below.
Services it uses
HTTP calls to: api.paycaptain.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Switch
n8n-nodes-base.switch - MCP Server Trigger
@n8n/n8n-nodes-langchain.mcpTrigger - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - Aggregate
n8n-nodes-base.aggregate - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if
From the author
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…