Pylpex MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pylpex MCPtokenize this Pylpex code: x = 5 + 3"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Pylpex MCP
This is a MCP server for Pylpex interpreter.
Installation
Assuming you are using Claude Desktop and have uv installed, follow these instructions to set up the Pylpex MCP server:
Clone the repository:
git clone https://github.com/Golto/pylpex-mcp.git
cd pylpex-mcpInstall dependencies:
uv syncThis command reads the pyproject.toml file and installs all the required dependencies.
Configure your Claude Desktop settings to use this MCP server:
Go to your Claude Desktop settings, then to the Developer Settings tab, click on "Edit config" and add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"Pylpex": {
"command": "uv",
"args": [
"--directory",
"$ABSOLUTE/PATH/TO/THE/PROJECT/pylpex-mcp",
"run",
"mcp",
"run",
"main.py"
]
}
}
}You may want to replace uv with the absolute path to the uv executable. To find uv location, use which uv on Linux/MacOS or where uv on Windows. Also, replace $ABSOLUTE/PATH/TO/THE/PROJECT/pylpex-mcp with the absolute path to the project directory. --directory argument is required for uv to find the project with dependencies.
Note: Running
uv run mcp install main.pywill install the MCP server in your Claude Desktop settings directly. But it may not work because of the--directoryargument missing.
Close and reopen your Claude Desktop application to apply the changes.
Verify that the Pylpex server is running by checking the status in the Developer Settings tab.
You should see the Pylpex tools available in your Claude Desktop interface.
Related MCP server: PyForge IDE
Tools
At this point, you should have access to the following tools:
run: Execute Pylpex code and return the result.
tokenize: Convert Pylpex code into tokens for analysis. Use the Lexer component of the Pylpex interpreter.
get_variables: Get all variables in the current interpreter state.
reset: Reset the interpreter state.
Resources
get_documentation: Get the documentation of the Pylpex language. It gives you the syntax and the available functions.
get_examples: Get examples of Pylpex code as code snippets.
More details
For more details about the Pylpex language, you can check the Pylpex github repository.
Note: The Pylpex language is still in development and may change in the future. And it's in french...
Available Tools
4 toolsget_variablesB
Get all variables in the current interpreter state.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| error | No | |
| success | No | |
| variables | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden for behavioral disclosure. It states the tool retrieves variables but doesn't specify format (e.g., dictionary, list), scope (e.g., local/global), or any side effects (e.g., performance impact). This leaves significant gaps for a tool with no annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's function without any wasted words. It is front-loaded and appropriately sized for its simple purpose, earning full marks for conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has 0 parameters, 100% schema coverage, and an output schema exists, the description is minimally adequate. However, with no annotations and sibling tools present, it lacks context on usage and behavioral details, making it incomplete for optimal agent guidance despite the structured data support.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description appropriately doesn't discuss parameters, and the baseline for this scenario is 4, as it avoids redundancy while being complete for a parameterless tool.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Get') and resource ('all variables in the current interpreter state'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'reset' or 'run', which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'reset' (which might clear variables) or 'run' (which might execute code affecting variables). It lacks explicit when/when-not instructions or context for selection among siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
resetB
Reset the interpreter state.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| error | No | |
| success | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden but only states what the tool does ('reset the interpreter state') without explaining what 'reset' entails (e.g., clears variables, resets execution environment, irreversible changes). It lacks details on permissions, side effects, or response behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with no wasted words, making it appropriately sized and front-loaded for a simple tool. Every word contributes to the core purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has 0 parameters, 100% schema coverage, and an output schema exists, the description is minimally adequate. However, as a mutation tool with no annotations, it should better explain what 'reset' means behaviorally (e.g., what gets cleared, if it's reversible) to be more complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters, and schema description coverage is 100%, so no parameter documentation is needed. The description doesn't add parameter details, which is appropriate, earning a baseline score of 4 for this dimension.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('reset') and the target ('interpreter state'), which is a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'get_variables' or 'run', which might also affect interpreter state in different ways.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives like 'run' (which might execute code) or 'get_variables' (which might inspect state). The description implies it's for resetting state but doesn't specify contexts or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
runA
Execute Pylpex code and return the result.
Pylpex is a custom programming language. Before executing code:
Check pylpex://documentation for syntax reference
Review pylpex://examples for working patterns
Ensure code follows Pylpex syntax conventions
Args: code: Valid Pylpex source code to execute
Returns: The evaluated result of the code execution
Example usage: run("2 + 2") # Returns: 4 run("function double(x) { return x * 2 } double(5)") # Returns: 10
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| error | No | |
| result | No | |
| success | No | |
| code_executed | No | |
| code_attempted | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly describes that this tool executes code and returns results, mentions the need to follow syntax conventions, and provides example outputs. It doesn't cover potential side effects, security implications, or error handling, but provides substantial behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured and front-loaded with the core purpose. Every sentence adds value: the main execution statement, three prerequisite steps, parameter documentation, return value explanation, and illustrative examples. No wasted words or redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of a code execution tool with no annotations, the description provides comprehensive context. It explains the tool's purpose, prerequisites, parameter semantics, return values, and includes examples. The presence of an output schema means the description doesn't need to detail return format, allowing it to focus on execution behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 0% description coverage, so the description must compensate fully. It explicitly documents the single parameter 'code' as 'Valid Pylpex source code to execute', provides syntax guidance, and includes concrete examples showing how the parameter should be formatted and what constitutes valid input.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific verb 'Execute' and resource 'Pylpex code', distinguishing it from siblings like get_variables (retrieval), reset (state management), and tokenize (analysis). It provides a complete purpose statement with the expected outcome.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context about when to use this tool (for executing Pylpex code) and includes prerequisites (check documentation, review examples, ensure syntax conventions). However, it doesn't explicitly state when NOT to use it or name specific alternatives among siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
tokenizeB
Convert Pylpex code into tokens for analysis.
Args: code: Valid Pylpex source code to tokenize
Returns: List of tokens with their types, values, and positions
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| count | No | |
| error | No | |
| tokens | Yes | |
| success | No | |
| code_analyzed | No | |
| code_attempted | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It states the tool converts code to tokens but doesn't disclose behavioral traits such as error handling (e.g., invalid code), performance characteristics (e.g., speed, limits), or side effects. The description is minimal and lacks critical operational details beyond the basic function.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is appropriately sized and front-loaded: the first sentence states the core purpose clearly. The 'Args' and 'Returns' sections are structured efficiently with no redundant information. Every sentence earns its place, making it concise and well-organized.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (tokenization task), no annotations, and an output schema present (which handles return values), the description is partially complete. It covers the basic purpose and parameters but lacks usage guidelines, behavioral details, and context for integration with siblings. It's adequate as a minimum viable description but has clear gaps in guidance and transparency.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds some meaning beyond the input schema: it specifies that the 'code' parameter must be 'Valid Pylpex source code', which clarifies the expected input format. However, with 0% schema description coverage and only one parameter, the description compensates partially but doesn't provide detailed semantics (e.g., code examples, tokenization rules). Baseline is 3 due to low parameter count and minimal added value.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Convert Pylpex code into tokens for analysis.' It specifies the verb ('Convert'), resource ('Pylpex code'), and outcome ('tokens for analysis'), which distinguishes it from siblings like 'get_variables', 'reset', and 'run'. However, it doesn't explicitly differentiate from siblings beyond the basic function, missing a direct comparison.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, context for tokenization (e.g., preprocessing steps), or comparisons to sibling tools. Usage is implied by the purpose but lacks explicit when/when-not instructions or alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
4 tool updates
- First observed
get_variables - First observed
reset - First observed
run - First observed
tokenize
TDQS
Each tool has a clearly distinct purpose with no overlap: get_variables retrieves interpreter state, reset clears it, run executes code, and tokenize analyzes code structure. The descriptions make these roles unambiguous, preventing agent misselection.
All tool names follow a consistent verb-based pattern (get_variables, reset, run, tokenize) without mixing conventions. The naming is straightforward and predictable, enhancing readability and agent usability.
With 4 tools, the count is reasonable for a language interpreter server, covering core operations like execution, state management, and analysis. It could benefit from additional tools (e.g., for debugging or syntax validation) but is well-scoped for basic functionality.
The toolset covers essential interpreter workflows: running code, inspecting state, resetting state, and tokenizing code. Minor gaps exist, such as lack of tools for step-through debugging or syntax checking, but agents can work around these with the provided tools.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
- mcp-serverOAuthai.cdbx
Build Apps and run code in 30 languages — sandboxed, with persistent sessions for agent loops.
@latest documentation and code examples to 9000+ libraries for LLMs and AI code editors in a singl…
Run Python code in a secure sandbox without local setup. Declare inline dependencies and execute s…
Build, version, review, and export websites, web apps, and games from a conversation.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables execution of Python code in a safe environment, including running scripts, installing packages, and retrieving variable values. Supports file operations and package management through pip.8Apache 2.0
- -licenseNot gradedqualityNot gradedmaintenanceEnables Python code execution in a sandboxed environment with virtual file system management and pip package installation capabilities.-
- FlicenseAqualityDmaintenanceEnables LLMs to interact with Python environments, execute code, manage files, and handle packages through the Model Context Protocol.9-
- FlicenseNot gradedqualityCmaintenanceEnables safe execution of Python code with AI assistance and integration with Model Context Protocol tools.1-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Golto/pylpex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server