Enrich user data by adding social network links based on provided personal information. Integrate…
A Model Context Protocol (MCP) server that enriches user data by adding social network links. This server can be integrated with AI platforms like Smithery.ai to provide social media link discovery capabilities.
npm install mcp-user-data-enrichment# Direct stdio usage
node src/mcp-server.js
# Or via npm script
npm run mcp# Start HTTP server on port 3000
npm startGET /status - Server statusGET /tools - List available toolsPOST /tools/call - Call any toolPOST /enrich-user - Enrich user dataThe server provides one tool: enrich_user_data
Input Schema:
{
"firstName": "string",
"lastName": "string",
"birthDate": "string (YYYY-MM-DD)"
}Output:
{
"user": {
"firstName": "John",
"lastName": "Smith",
"birthDate": "1990-01-01"
},
"socialLinks": {
"instagram": "https://instagram.com/john_smith",
"facebook": "https://facebook.com/john.smith",
"twitter": "https://twitter.com/john_smith",
"linkedin": "https://linkedin.com/in/john_smith"
}
}This MCP server is designed to work with Smithery.ai, a platform for AI agent orchestration.
{
"mcpServers": {
"user-data-enrichment": {
"command": "node",
"args": ["path/to/mcp-server.js"]
}
}
}// In your Smithery agent
const result = await mcp.callTool('enrich_user_data', {
firstName: 'John',
lastName: 'Smith',
birthDate: '1990-01-01'
});
console.log(result.content[0].text);# Install dependencies
npm install
# Run in development mode
npm run dev
# Test MCP server directly
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | node src/mcp-server.js# Run test client
node test-client.js
# Test with curl
curl -X POST http://localhost:3000/enrich-user \
-H "Content-Type: application/json" \
-d '{"firstName": "John", "lastName": "Smith", "birthDate": "1990-01-01"}'The server includes mock social links for these users:
For other users, links are generated automatically based on the name.
MIT License - see LICENSE file for details
Dockerfile - Docker configuration for containerized deploymentsmithery.yaml - Smithery.ai configuration file.dockerignore - Docker ignore file for optimized builds