Skip to main content

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

Project description

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

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

urban_dictionary_mcp-0.0.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

urban_dictionary_mcp-0.0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file urban_dictionary_mcp-0.0.2.tar.gz.

File metadata

  • Download URL: urban_dictionary_mcp-0.0.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for urban_dictionary_mcp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1e4f02cdd57a823fcb506f85f5e713fd130c2adcd0645c8646884e3aec6240da
MD5 e5873fe6154d1f063bad4722d9c1c48f
BLAKE2b-256 f970235c3ff36c65038c65e1e674a1a6c12170a018e960c30fd71aa2de65ff41

See more details on using hashes here.

Provenance

The following attestation bundles were made for urban_dictionary_mcp-0.0.2.tar.gz:

Publisher: release.yaml on cssnr/urban-dictionary-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file urban_dictionary_mcp-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for urban_dictionary_mcp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77647ffb246041ddb573eed0efb1372a571b57d6c0640ac3178d7c94d293b005
MD5 75b8e3444e7c4b402daeb8ea76f50337
BLAKE2b-256 0dc25010c2a0b41c4ae9096ff2ba82c2c8a442f82129c548737b94b4f305314a

See more details on using hashes here.

Provenance

The following attestation bundles were made for urban_dictionary_mcp-0.0.2-py3-none-any.whl:

Publisher: release.yaml on cssnr/urban-dictionary-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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