Skip to main content

MCP server for fake.py.

Project description

This project exposes all Faker class methods from fake.py as MCP tools using FastMCP 2.0.

PyPI Version Supported Python versions Build Status Documentation Status llms.txt - documentation for LLMs MIT Coverage

Purpose

It’s easy for a model to look smart “on paper”, but real-world work requires following strict technical rules.

This MCP server provides a wide range of complex, “fake” tools to test how well a model actually follows instructions. By asking a model to generate data for these tools, you can see if it:

  1. Uses the exact parameters required (no more, no less).

  2. Provides the correct data types and formats.

  3. Understands complex technical requirements without making mistakes.

If a model can accurately handle these fake tools, you can trust it to handle your real production tools. It’s a simple way to find out which models are actually ready for work.

Features

  • 80+ fake.py fake data methods (names, text, internet, files, primitives, dates, geo, books, banking, file content), dynamically registered (no manual boilerplate), categorised and documented.

  • Binary outputs (e.g., images, PDFs) are returned as base64-encoded strings.

  • server_info tool for introspection.

Prerequisites

Python 3.10+

Installation

uv tool install fake-py-mcp

Usage

Run the server

STDIO

fake-py-mcp

HTTP

fake-py-mcp http

SSE

fake-py-mcp sse

Connect with any MCP client to access all fake.py tools

Developers need good tools. Unfortunately, FastMCP does not come with a GUI (like OpenAPI/Swagger), but there are good tools available.

Option 1: MCP Inspector

Installation

brew install mcp-inspector

Usage

Run MCP Inspector on port 8006:

CLIENT_PORT=8006 mcp-inspector fake-py-mcp

Or if you prefer no-auth option:

DANGEROUSLY_OMIT_AUTH=true CLIENT_PORT=8006 mcp-inspector fake-py-mcp

Open http://127.0.0.1:8006 and enjoy the MCP Inspector interface.

Option 2: mcpo

Installation

uv tool install mcpo

Usage

Run mcpo on port 8006:

mcpo --port 8006 -- fake-py-mcp

Open http://127.0.0.1:8006/docs and enjoy OpenAPI Swagger comfort.

Documentation

Tests

Run the tests:

pytest

Writing documentation

Keep the following hierarchy.

=====
title
=====

header
======

sub-header
----------

sub-sub-header
~~~~~~~~~~~~~~

sub-sub-sub-header
^^^^^^^^^^^^^^^^^^

sub-sub-sub-sub-header
++++++++++++++++++++++

sub-sub-sub-sub-sub-header
**************************

License

MIT

Support

For security issues contact me at the e-mail given in the Author section.

For overall issues, go to GitHub.

Author

Artur Barseghyan <artur.barseghyan@gmail.com>

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

fake_py_mcp-0.3.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

fake_py_mcp-0.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file fake_py_mcp-0.3.tar.gz.

File metadata

  • Download URL: fake_py_mcp-0.3.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for fake_py_mcp-0.3.tar.gz
Algorithm Hash digest
SHA256 46250732cb0ffb235f428427b7a2ee7b9dafb9cbdb5d70d900b08c0cdfd3ef05
MD5 3f2b7d99f095ec7db055b4fb1f07c279
BLAKE2b-256 a706d97968d9e3d1b1ebb9cba9743f71586e404c235854c0091fb455e6090138

See more details on using hashes here.

File details

Details for the file fake_py_mcp-0.3-py3-none-any.whl.

File metadata

  • Download URL: fake_py_mcp-0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for fake_py_mcp-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ed2a7513974d34bc5bfc61b948c0933930cbd995e2bffc4ce663b708c97d02ec
MD5 c320a84f74772b81ce0a08faf7fa7dcb
BLAKE2b-256 f2b1332d2e2742369e3fd79d138d07744fa7ec809aa86af8e65326e5539420ca

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