Skip to main content

Enterprise-grade People Finder MCP Server

Project description

MCP People Finder

Model Context Protocol (MCP) Server for AI agents to safely discover and query employee information.

This is a demo/educational project using simulated data to illustrate how MCP servers work. It demonstrates how to build enterprise-grade tools that AI agents can call securely over standard input/output (stdio).

What is MCP?

Model Context Protocol enables AI agents (like Claude) to call external tools in a standardized, type-safe way. Instead of embedding logic directly, agents can request specific information through well-defined tool interfaces. This server uses stdio for communication — a client (like Claude Desktop) starts your Python script as a background process.

Features

  • Employee Search — Query employee details (role, email, status)
  • Office Location Lookup — Find office addresses by city
  • Global Office Directory — List all office locations
  • Production-Ready Structure — Demonstrates enterprise MCP patterns
  • Easy Testing — Built-in MCP Inspector integration

Prerequisites

  • Python 3.11+ — Required for running the server
  • Node.js — Required for MCP Inspector testing (optional, for development only)

Installation

pip install mcp-people-finder

Usage

Once installed, you can run the server directly:

people-finder

Expected Output

$ people-finder
MCP People Finder Server running on stdio...

Available Tools

Tool Input Output
search_employee Employee name Role, email, employment status
get_office_location City/location Office address, phone
list_all_offices (none) List of all global office locations

Testing & Development

Use MCP Inspector for local testing

For testing use the MCP Inspector (npx @modelcontextprotocol/inspector) to test this MCP server locally.

Run this command on your machine (it requires Node.js):

npx @modelcontextprotocol/inspector people-finder
  • This will launch a web browser window.
  • You will see your get_employee_info tool listed.
  • You can click "Run", type "Alice" in the box, and see the result.
  • Why this matters: This is how you "smoke test" your production server to ensure the logic works before letting an expensive AI Agent touch it.

Use with Claude Desktop

To integrate this MCP server with Claude Desktop:

  1. Ensure the package is installed: pip install mcp-people-finder
  2. Configure Claude Desktop config file to point to people-finder command
  3. Restart Claude Desktop to load the server
  4. Claude will now have access to all three tools

Error Handling

If a tool call fails, the server returns a graceful error response:

{
  "error": "Employee 'XYZ' not found in database"
}

This allows Claude to handle errors intelligently (retry, ask for clarification, etc.) rather than crashing.

Configuration

The server reads from environment variables (optional):

  • MCP_LOGLEVEL — Set to DEBUG for verbose output (default: INFO)
  • EMPLOYEE_DB — Path to custom employee database (currently uses hardcoded demo data)

Need Help?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_people_finder-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_people_finder-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_people_finder-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_people_finder-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for mcp_people_finder-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e68234a0a939477c7e38394cfa86cca6be0cfce99c188414bea5fa80327314a1
MD5 4099985d6738ba3c44292a1895d36d35
BLAKE2b-256 38ba20d5abda7cee6f042516baa01f2ecf2c7ed5e8f50226adb8bda4cc00548c

See more details on using hashes here.

File details

Details for the file mcp_people_finder-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_people_finder-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 929c3547516aea7fc11f1822fdeecdc82f578a6760dc1ffc3fa360a5947e8f98
MD5 0e7afcdd98f7461cd4706d32e72887e0
BLAKE2b-256 13e23dcd8110b6c6dd64362195d897e9f3333bedea8e9f9a03752d1cd338d452

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page