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
- custom-mcp-server: MCP sunucusu
- simple-lead-api: Lead oluşturma için basit bir REST API
- 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
Endpoint | Açıklama |
---|---|
GET /sse | n8n agent bağlantısı için kullanılır |
POST /messages | Agent 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
- MCP Server URL:
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.