simple-mcp-server

MustafaPicakci/simple-mcp-server

3.2

If you are the rightful owner of simple-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.

The custom MCP server is designed to facilitate communication between agents and a lead creation API through a structured protocol.

MCP Lead Example

  1. custom-mcp-server: MCP sunucusu
  2. simple-lead-api: Lead oluşturma için basit bir REST API
  3. n8n workflow: Agent tabanlı bir n8n süreci

1. custom-mcp-server

Başlatmak için:

cd custom-mcp-server
npm install
npm run dev

Önemli Endpointler

EndpointAçıklama
GET /ssen8n agent bağlantısı için kullanılır
POST /messagesAgent mesajlarını iletir
ALL /mcp(Opsiyonel) streamable HTTP destekler

2. simple-lead-api

Başlatmak için:

cd simple-lead-api
npm install
npm start

API Kullanımı

POST /api/lead:

{
  "name": "John Doe",
  "email": "john@example.com",
  "phone": "+905555555555"
}

3. n8n workflow

  • n8n-custom-mcp.json dosyasını Import Workflow diyerek içe aktarın.
  • MCP Client tool yapılandırmasında:
    • MCP Server URL: http://localhost:3001/sse
    • Tool: create-lead

Her şey ayağa kalktıktan sonra, n8n içinden agent'e doğal dilde isim, mail ve telefon içeren mesaj yollayarak lead oluşturabilirsin.