Skip to main content

GitHub Release Version PyPI Version Image Latest Image Size Deployment PyPi Workflow Build Workflow Deploy Workflow Release GitHub Last Commit GitHub Repo Size GitHub Top Language GitHub Contributors GitHub Issues GitHub Discussions GitHub Forks GitHub Repo Stars GitHub Org Stars Discord Ko-fi

Urban Dictionary MCP

Urban Dictionary MCP

MCP Server exposing the Urban Dictionary via the Model Context Protocol.

Setup

This can be run in Local CLI mode or Remote server mode.

Local

In CLI mode using uv.

View Config - Local uv
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "urban-dictionary": {
      "type": "local",
      "command": ["uvx", "urban-dictionary-mcp"]
    }
  }
}

In CLI mode using Python pip.

pip install urban-dictionary-mcp
View Config - Local Python
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "urban-dictionary": {
      "type": "local",
      "command": ["urban-dictionary-mcp"]
    }
  }
}

Remote

With Docker run.

docker run --rm -p 80:8000 ghcr.io/cssnr/urban-dictionary-mcp:latest

With Docker Compose.

services:
  app:
    image: ghcr.io/cssnr/urban-dictionary-mcp:latest
    ports:
      - '80:8000'

With Python from source.

uv sync
uv run uvicorn urban_dictionary_mcp.server:app --app-dir src --host 0.0.0.0 --port 8000
View Config - Remote
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "urban-dictionary": {
      "type": "remote",
      "url": "http://localhost/mcp"
    }
  }
}

Note: Set the url to the host you are running the server on.

Deploy to Render

For a Docker Swarm + Traefik example see the docker-compose-swarm.yaml.

For a Portainer Deploy workflow see the .github/workflows/deploy.yaml.

Configure

This is for advanced configuration only.

Variable Description Default
HISHEL_CACHE_PATH Path cache database file ./hishel_cache.db
HISHEL_CACHE_TTL Cache TTL in seconds 1209600
STATELESS_HTTP Enable stateless HTTP mode true

Boolean True Values (case-insensitive): 1, on, t, true, y, yes

In Docker the cache path is /data/hishel_cache.db so you can mount /data as a volume.

Development

Sync project.

uv sync

Run local server.

run cli

Run remote server (live reload).

run dev

Point your client to: http://localhost:8000/mcp

Run remote Docker Compose (live reload).

run compose

Point your client to: http://localhost/mcp

You can set the PORT environment variable.

Building

Docker Image

To build and test the docker image run.

bash build.sh
docker compose up

Point your client to: http://localhost/mcp

Python Package

This builds the bdist and wheel, if you have a use for it...

run build

Support

If you run into any issues or need help getting started, please do one of the following:

Features Issues Discussions Discord

Contributing

Please consider making a donation to support the development of this project and additional open source projects.

Ko-fi

For a full list of current projects visit: https://cssnr.github.io/

Star History Chart

Metadata

Release files for urban-dictionary-mcp 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urban-dictionary-mcp 0.0.4
File Size Uploaded
urban_dictionary_mcp-0.0.4.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for urban-dictionary-mcp 0.0.4
File Interpreter ABI Platform
urban_dictionary_mcp-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / urban_dictionary_mcp-0.0.4.tar.gz

Download URL urban_dictionary_mcp-0.0.4.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fc9ad31427741e477de28717705edc5f28743663e990cddc04d89bb345fa58bf
BLAKE2b-256 checksum
How to use checksums
d9a8a3b76de79e04556aaff97eb6917c78040cdc04cffb171444f580a05354a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.

Transparency log

Release files / urban_dictionary_mcp-0.0.4-py3-none-any.whl

Download URL urban_dictionary_mcp-0.0.4-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bd04aed674da9ed895fdddad86b8351ae2b234e4a43be996deb882225318203
BLAKE2b-256 checksum
How to use checksums
bcc1d193082e73cfa42dc1c0d6403e3b54d61ac6eae39d7e1fb5471a9738fe07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page