UK Data: Code utilities

uk.co.relinessPublished by reliness.co.ukOfficial publisherv1.5.0Updated Nov 7, 2026

Deterministic string, list and number routines: palindromes, sorting, searching, validation, merging

The publisher's own server: UK Data: Compliance and finance checks

VerifiedStreamable HTTPWeb executableDeveloper ToolsData & Analytics

Overview

AI-generated overview

Remote MCP endpoint offering 32 deterministic string, list and number utility routines, such as palindrome checks, sorting, searching and validation.

What you can do
  • Check strings: palindromes, anagrams, rotations, balanced parentheses, first non-repeating character, longest word, reversal
  • Search and sort lists: binary search, sorting, kth smallest, n largest, peak element, majority element, duplicate and missing numbers, pairs summing to a target
  • Analyze arrays: maximum subarray sum, equilibrium index, next greater element, flattening nested lists, merging sorted lists
  • Validate and compute numbers: IPv4 address format, perfect squares, exact powers, sum of digit cubes, bit counting, binary addition
  • Work with structures and scheduling: merge dictionaries, validate a 9x9 Sudoku board, check meeting overlaps and minimum meeting rooms
When to use it
Useful when you want an assistant to offload small, well-defined algorithmic checks and computations to a hosted service instead of writing and running code locally, for example quick data validation or interview-style problem solving.
Requirements
A remote streamable HTTP endpoint; no local runtime or package install. An optional Authorization header with a bearer key raises the free daily allowance; a free key is obtained from the provider's key endpoint. Each tool call costs one credit.
Before you install
Calls are metered at one credit each and the free daily allowance is limited, so heavy use needs a key. The Authorization bearer key is a secret and should be supplied through the header rather than shared. Inputs you send, including strings and lists, are processed by the remote provider.

Installation

In SourceWeft

  1. Open UK Data: Code utilities in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/uk.co.reliness%2Fcode-utilities/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "uk-data-code-utilities": {
      "type": "http",
      "url": "https://ukdata.reliness.co.uk/mcp/code-utilities"
    }
  }
}

Tools

32

is_valid_ip_address

is valid ip address

Validates whether a string is a properly formatted IPv4 address with four octets (0-255) separated by dots. (cost: 1 credit)

Parametersip

find_max_subarray_sum

find max subarray sum

Finds the maximum sum of any contiguous subarray using Kadane's algorithm. (cost: 1 credit)

Parametersnums

merge_dictionaries

merge dictionaries

Merges two dictionaries into a single dictionary, with values from the second dictionary overwriting those from the first for duplicate keys. (cost: 1 credit)

Parametersdict1dict2

find_kth_smallest

find kth smallest

Finds the kth smallest number in an unsorted list (1-indexed, where k=1 returns the smallest element). (cost: 1 credit)

Parametersknums

count_bits

count bits

Counts the number of set bits (1's) in the binary representation of a non-negative integer. (cost: 1 credit)

Parametersnum

reverse_string

reverse string

Reverses the order of characters in a given string, returning the string backwards. (cost: 1 credit)

Parameterstext

min_meeting_rooms

min meeting rooms

Finds the minimum number of meeting rooms required to accommodate all meetings given their time intervals. Uses interval scheduling algorithm. (cost: 1 credit)

Parametersintervals

find_next_greater_element

find next greater element

For each element in a list, finds the next greater element to its right. Returns -1 if no greater element exists. (cost: 1 credit)

Parametersnums

binary_addition

binary addition

Adds two binary numbers represented as strings and returns the sum as a binary string. Performs binary arithmetic with carry propagation. (cost: 1 credit)

Parametersab

is_palindrome

is palindrome

Checks if a string is a valid palindrome, considering only alphanumeric characters and ignoring case and spaces. (cost: 1 credit)

Parameterstext

sort_numbers

sort numbers

Sorts a list of numbers in ascending order using a deterministic sorting algorithm. (cost: 1 credit)

Parametersnumbers

find_pairs_with_sum

find pairs with sum

Finds all unique pairs of integers in a list that sum to a specified target value. Returns pairs as arrays. (cost: 1 credit)

Parametersnumstarget

is_perfect_square

is perfect square

Checks if a number is a perfect square (i.e., the square of an integer). (cost: 1 credit)

Parametersnum

find_n_largest

find n largest

Finds the n largest numbers from a list and returns them in descending order. (cost: 1 credit)

Parametersnnums

is_valid_parentheses

is valid parentheses

Checks if a string contains properly balanced and nested parentheses, brackets, and braces. Returns true if every opening symbol has a matching closing symbol in the correct order. (cost: 1 credit)

Parameterss

find_minimum_rotated_sorted_array

find minimum rotated sorted array

Finds the minimum element in a rotated sorted array using binary search. The array was originally sorted in ascending order then rotated at some pivot point. (cost: 1 credit)

Parametersnums

flatten_list

flatten list

Flattens a nested list structure into a single-level list by recursively extracting all elements regardless of nesting depth. (cost: 1 credit)

Parametersnested_list

is_anagram

is anagram

Checks if two words are anagrams by comparing if they contain the same characters with the same frequencies, ignoring case and whitespace. (cost: 1 credit)

Parametersword1word2

find_first_non_repeating_char

find first non repeating char

Finds the first character in a string that appears only once. Returns null if all characters repeat. (cost: 1 credit)

Parameterss

find_equilibrium_index

find equilibrium index

Finds the equilibrium index in an array where the sum of elements to the left equals the sum of elements to the right. Returns -1 if no such index exists. (cost: 1 credit)

Parametersarr

find_missing_number

find missing number

Finds the missing number in a sequence of integers from 0 to n where exactly one number is missing. Uses sum formula or XOR method. (cost: 1 credit)

Parametersnums

is_power

is power

Checks if a given number is an exact integer power of a specified base. Returns true if num = base^k for some non-negative integer k, false otherwise. (cost: 1 credit)

Parametersnumbase

find_longest_word

find longest word

Finds and returns the longest word in a given text string. If multiple words have the same maximum length, returns the first occurrence. (cost: 1 credit)

Parameterstext

can_attend_meetings

can attend meetings

Determines if a person can attend all meetings given a list of time intervals by checking for overlapping time slots. Returns true if no meetings conflict, false otherwise. (cost: 1 credit)

Parametersintervals

is_rotation

is rotation

Checks if one string is a rotation of another string by verifying if str1 appears in str2 concatenated with itself. Returns true if str1 is a rotation of str2, false otherwise. (cost: 1 credit)

Parametersstr1str2

find_peak_element

find peak element

Finds a peak element in a list where an element is greater than its neighbors. Returns the index of any peak element found. (cost: 1 credit)

Parametersnums

find_duplicate_number

find duplicate number

Finds the duplicate number in a list of integers where exactly one number appears more than once. Returns the duplicate value. (cost: 1 credit)

Parametersnums

is_sum_of_cubes

is sum of cubes

Checks if a number equals the sum of the cubes of its digits (e.g., 153 = 1³ + 5³ + 3³). Returns true if the condition holds, false otherwise. (cost: 1 credit)

Parametersnum

validate_sudoku

validate sudoku

Checks if a 9x9 Sudoku board is valid by verifying that each row, column, and 3x3 sub-grid contains no duplicate digits 1-9. Returns true if valid, false otherwise. (cost: 1 credit)

Parametersboard

find_majority_element

find majority element

Finds the majority element in a list that appears more than ⌊n/2⌋ times using Boyer-Moore voting algorithm. Returns the majority element if it exists, null otherwise. (cost: 1 credit)

Parametersnums

merge_sorted_lists

merge sorted lists

Merges two sorted lists into a single sorted list maintaining ascending order. Returns the merged sorted list. (cost: 1 credit)

Parameterslist1list2

Version history

1
  1. v1.5.0LatestNov 7, 2026

Score

83% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • LicenseNot applicable

    A hosted service is used under its provider's terms, so no license is expected here. This check is left out of the percentage.

Other Reliness integrations