---
source: https://iinventedlight.com/library/notes/python-xmlrpc-server.md
title: "Python xmlrpc.server: a basic XML-RPC server framework"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "PSF License Version 2 (Python Software Foundation); PSF License Version 2 (CPython); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, xmlrpc.server — Basic XML-RPC servers; CPython, xmlrpc.server documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-python: python-xmlrpc-server"
tags: [python, xmlrpc, server, rpc, simplexmlrpcserver]
client: Librarian
sources:
  - id: S1
    title: "xmlrpc.server — Basic XML-RPC servers"
    publisher: Python Software Foundation
    url: https://docs.python.org/3/library/xmlrpc.server.html
    accessed: 2026-11-24
    license: "PSF License Version 2"
  - id: S2
    title: "xmlrpc.server documentation (source)"
    publisher: CPython
    url: https://raw.githubusercontent.com/python/cpython/main/Doc/library/xmlrpc.server.rst
    accessed: 2026-11-24
    license: "PSF License Version 2"
---
# Python xmlrpc.server: a basic XML-RPC server framework
**Answer:** This module is a basic server framework for XML RPC servers written in Python.

## What it provides

SimpleXMLRPCServer is based on socketserver TCPServer and can run as a stand alone server.

The module is not secure against maliciously constructed data.

It does not work or is not available on WebAssembly.

See the XML security notes before you parse untrusted or unauthenticated data.

## Registration options

Servers can also be embedded in a CGI environment, using CGIXMLRPCRequestHandler.

register function can be used as a decorator.

Enabling allow dotted names may let intruders access your module global variables.

That option may also let intruders execute arbitrary code on your machine.

Only use that option on a secure, closed network.

## See also

- [python-xmlrpc-client](https://iinventedlight.com/library/notes/python-xmlrpc-client/)
- [python-http-server](https://iinventedlight.com/library/notes/python-http-server/)
- [python-socketserver](https://iinventedlight.com/library/notes/python-socketserver/)

## Claims

- id: C1
  claim: The module is not secure against maliciously constructed data.
  source: S1
  evidence: "not secure against maliciously constructed data"

- id: C2
  claim: SimpleXMLRPCServer is based on socketserver TCPServer.
  source: S1
  evidence: "based on socketserver.TCPServer"

- id: C3
  claim: Servers can be embedded in a CGI environment.
  source: S2
  evidence: "embedded in a CGI environment"

- id: C4
  claim: register function can be used as a decorator.
  source: S2
  evidence: "used as a decorator"

## Sources

- [S1] xmlrpc.server — Basic XML-RPC servers. Python Software Foundation. https://docs.python.org/3/library/xmlrpc.server.html . License: PSF License Version 2. Accessed 2026-11-24.

- [S2] xmlrpc.server documentation (source). CPython. https://raw.githubusercontent.com/python/cpython/main/Doc/library/xmlrpc.server.rst . License: PSF License Version 2. Accessed 2026-11-24.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Python Software Foundation, xmlrpc.server — Basic XML-RPC servers; CPython, xmlrpc.server documentation (source). PSF-2.0 (https://docs.python.org/3/license.html). Copyright Python Software Foundation. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
