sokrates-mcp
Provides tools for prompt refinement and execution workflows using the OpenAI API, including listing models, processing prompts, task breakdown, code review, and idea generation.
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., "@sokrates-mcpbreak down my project into smaller tasks"
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.
sokrates-mcp
A MCP server offering tools for prompt refinement and execution workflows using the FastMCP framework and the sokrates python library.
Features
Multiple provider/APU support
Available Model/Provider listing
Prompt refinement with different types (code/default)
External LLM processing
Task breakdown into sub-tasks
Create code reviews for Python source files
Generate random ideas
Generate ideas to a topic
Have a look at the sokrates library.
Related MCP server: MCP Plus
Installation & Setup
Prerequisites
Ensure you have:
Python 3.10+
uv (fast package installer)
Install from PyPi
pip install sokrates-mcp
# or using uv (recommended)
## basic version:
uv pip install sokrates-mcpAlternative - Local Configuration from git
Clone the repository if hosted:
git clone https://github.com/Kubementat/sokrates-mcp.git
cd sokrates-mcpInstall dependencies using pyproject.toml:
uv syncSetup Server Configuration File
Via git installed version
mkdir $HOME/.sokrates-mcp
cp config.yml.example $HOME/.sokrates-mcp/config.yml
# edit the according endpoints to your use case
vim $HOME/.sokrates-mcp/config.ymlFrom scratch
Create the configuration file:
mkdir $HOME/.sokrates-mcp
vim $HOME/.sokrates-mcp/config.ymlThen use this as template and adjust it to your use case:
refinement_prompt_filename: refine-prompt.md
refinement_coding_prompt_filename: refine-coding-v3.md
# providers
default_provider: local
providers:
- name: local
type: openai
api_endpoint: http://localhost:1234/v1
api_key: "not-required"
default_model: "qwen/qwen3-4b-2507"
- name: external
type: openai
api_endpoint: http://CHANGEME/v1
api_key: CHANGEME
default_model: CHANGEMESetup as mcp server in other tools (Example for LM Studio)
For local Git installed version
{
"mcpServers": {
"sokrates": {
"command": "uv",
"args": [
"run",
"sokrates-mcp"
],
"cwd": "YOUR_PATH_TO_sokrates-mcp",
"timeout": 600000
}
}
}via uvx
{
"mcpServers": {
"sokrates": {
"command": "uvx",
"args": [
"sokrates-mcp"
]
}
}
}Usage Examples
Starting the Server
# from local git repo
uv run sokrates-mcp
# without checking out the git repo
uvx sokrates-mcpListing available command line options
# from local git repo
uv run sokrates-mcp --help
# without checking out the git repo
uvx sokrates-mcp --helpArchitecture & Technical Details
The server follows a modular design pattern:
Tools are registered in
main.pyusing FastMCP decoratorsDependency management via pyproject.toml
Configuration files stored in
$HOME/.sokrates-mcp/directory
Contributing Guidelines
Fork the repository and create feature branches
Follow PEP8 style guide with 4-space indentation
Submit pull requests with:
Clear description of changes
Updated tests (see Testing section)
Documentation updates
Available Tools
See the main.py file for a list of all mcp tools in the server
Project Structure
src/sokrates_mcp/main.py: Sets up the MCP server and registers toolssrc/sokrates_mcp/mcp_config.py: Configuration managementsrc/sokrates_mcp/utils.py: Helper and utility methodssrc/sokrates_mcp/workflow.py: Business logic for prompt refinement and executionpyproject.toml: Dependency management
Common Error: If you see "ModuleNotFoundError: fastmcp", ensure:
Dependencies are installed (
uv sync)Python virtual environment is activated
Changelog
0.4.3 (Sep 2025)
bugfix in workflow class - fix refinement workflow
0.4.2 (Sep 2025)
Update version to 0.4.2
0.4.1 (Sep 2025)
fix roll_dice tool
0.4.0 (Aug 2025)
adds new tools:
read_files_from_directory
directory_tree
logging refactoring in workflow.py
0.3.0 (Aug 2025)
adds new tools:
roll_dice
read_from_file
store_to_file
refactorings - code quality - still ongoing
0.2.0 (Aug 2025)
First published version
Update to latest sokrates library version
bugfixes and cleanup
multi provider/API support in the configuration file
0.1.5 (July 2025)
Updated README with comprehensive documentation
Added tool descriptions and usage examples
Improved project structure overview
0.1.0 (March 7, 2025)
Initial release with refinement tools
Basic FastMCP integration
Bug reports and feature requests: GitHub Issues
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/Kubementat/sokrates-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server