A small collection of Model Context Protocol (MCP) tools, built for local LLMs. One venv, many options.
Many MCP servers are distributed as separate projects and need separate setup.
This tool pack keeps a few local MCP servers in one repo and one uv environment.
- MCP JSON configuration generation: run
main.pyand go through the wizard - One venv for multiple MCP servers
- Web Search: Use duckduckgo as search engine, fetch and summarize top results
- Python SandBox: Allow agents to run Python and use NumPy and SymPy for math tasks
- Longterm-Memory: Store lightweight long-term notes
- Default transport is
stdio. You can switch to HTTP inGlobalConfig. python-sandbox.pyusesexec()andeval()forrun_python. This is not a secure sandbox.- Treat
run_pythonas local code execution by the agent under your user account. - The generated config now sets
PYTHON_SANDBOX_LOG_PATHfor localpython-sandboxentries so everyrun_pythonexecution is appended to a JSONL audit log.
- Python >= 3.13
- Managed with
uv
Using uv:
uv syncRun:
uv run python main.pyLM Studio currently follows Cursor-style mcp.json notation. The generated LM Studio output uses the mcpServers object with either:
command+args+envfor local stdio serversurl+headersfor remote HTTP servers
If you select the local python-sandbox server, the wizard will ask for an audit log file path.
python python-sandbox.pyThe server communicates over stdio (FastMCP). Point your MCP-compatible client at the executable command above.
Run main.py for JSON configuration generation.
For LM Studio, you will get something like this:
{
"mcpServers": {
"memory": {
"command": "E:\\LMStudio\\mcp\\lmstudio-toolpack\\.venv\\Scripts\\python.exe",
"args": [
"E:\\LMStudio\\mcp\\lmstudio-toolpack\\MCPs\\Memory.py"
],
"env": {}
},
"python-sandbox": {
"command": "E:\\LMStudio\\mcp\\lmstudio-toolpack\\.venv\\Scripts\\python.exe",
"args": [
"E:\\LMStudio\\mcp\\lmstudio-toolpack\\MCPs\\python-sandbox.py"
],
"env": {
"PYTHON_SANDBOX_LOG_PATH": "E:\\LMStudio\\mcp\\lmstudio-toolpack\\data\\python-sandbox-audit.jsonl"
}
},
"websearch": {
"command": "E:\\LMStudio\\mcp\\lmstudio-toolpack\\.venv\\Scripts\\python.exe",
"args": [
"E:\\LMStudio\\mcp\\lmstudio-toolpack\\MCPs\\WebSearch.py"
],
"env": {}
}
}
}Change the server names if needed.
If you choose HTTP, you can run a remote MCP deployment instead of local stdio servers.
