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:

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.2.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.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fake_py_mcp-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 6cc400ae9e003e39b4bda7ec02d52ddd5e5b7784d8de0b51412cbb98160fd46b
MD5 b81ba0bfa717f6eb7ff723287e29d36f
BLAKE2b-256 8f5b77df9c96358a668c4acd69535f782b6b687aa4125fef59bc376df2d8809a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fake_py_mcp-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 519c344942ccc1b6bdc1cca356ea3953b0f2de056db9b2528f6f2c940e1c91f4
MD5 51a71dcf99acc3ae40584e2430b6ef33
BLAKE2b-256 03928048125ad25b8dd0b05aeb3e9b0ceaaefc362407f07845b152178db86dce

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