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

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 with unittest:

python -m unittest test_fakepy_mcp.py

Or pytest:

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.2.1.tar.gz (11.9 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.2.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fake_py_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 49d2b1a92ed90ce28cfc5b38867214aab0befa9e8fc49c26471615d6b180e5f6
MD5 689c82c85874b2df92d0f6150ee27db5
BLAKE2b-256 78843315ed527e05b010689e0794236a6a8f128903ce6945b435b8de151290b5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fake_py_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8197ecf4624b841d448a69a5dcba9c6ac2baf3da6693dc2c3feab5d864a7250b
MD5 7938ea8e286f9f000ca51c52bd63d6ab
BLAKE2b-256 ecdb8f21d6df6dc5eb2ba93053255f0a6e0fac066fadaa1bf417d5db8c08d989

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