About Wikifunctions
Wikifunctions is an MCP server published by Fredibau in the Developer Tools category: allowing AI models to discover and execute functions from the WikiFunctions library.
The repository has 1 stars and 1 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/Fredibau/wikifunctions-mcp-fredibauThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (3)
find_codeFinds the code implementation for a given search query on WikiFunctions. Use this tool if the User asks for the code of a function.
Parameters not published.
get_templateBuilds a function call template (with argument names and types) for a Wikifunctions function that matches the given query. Use this tool as the first tool if the User asks for the execution of a function or if your task requires the execution of a function.
Parameters not published.
run_templateTransforms a function call template using provided values and executes it on Wikifunctions. Use this tool alwaysas the second tool if the User asks for the execution of a function or if your task requires the execution of a function.
Parameters not published.
Ask AI
Ask AI about Wikifunctions
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 9 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- !License declaredNo license file. Legally you have no right to use it in a product.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
WikiFunctions MCP Server
This project is a Model Context Protocol (MCP) server designed to interact with WikiFunctions, a Wikimedia project for creating, curating, and sharing code.
This server exposes the functionality of WikiFunctions through the Model Context Protocol, allowing AI models and other tools to discover and execute functions from the WikiFunctions library.
Quick Start
For MCP-compatible tools like Claude-Desktop or Cursor, you can enable this server by simply adding it to your mcp.json configuration file.
{
"mcpServers": {
"wikifunctions": {
"command": "npx",
"args": ["-y", "fredibau-wikifunctions-mcp"]
}
}
}
Features
The server provides three main tools:
find_code: Searches for a function on WikiFunctions and returns its source code implementation. This is useful for inspection and understanding how a function works.get_template: Fetches the definition of a WikiFunctions function and builds a JSON template for calling it. This template includes the function's name, description, and required arguments with their types.run_template: Executes a function call on WikiFunctions using a provided template and argument values. It transforms the user-friendly template into the required format, makes the API call, and returns the result.
How It Works
The server communicates with the WikiFunctions API to perform its operations.
- Finding Functions: When you use
find_codeorget_template, the server queries the WikiFunctionswikilambdasearch_functionsAPI endpoint to find functions matching your search query. - Fetching Details: Once a function is identified by its ZID (e.g.,
Z804for "add"), the server uses thewikilambda_fetchaction to get detailed information, including argument definitions, implementations, and multilingual labels. - Building Templates: The
get_templatetool parses the function details to construct a user-friendly JSON object that describes how to call the function. It resolves type ZIDs to human-readable names (e.g.,Z6becomes "String"). - Executing Functions: The
run_templatetool takes a template and user-provided values, transforms them into a valid WikiFunctions function call object, and sends it to thewikifunctions_runAPI endpoint for execution. The result is then parsed and returned.
README fetched from the repository 9 days ago. The original is authoritative.