veil-mcp
by shivankpndy
veil-mcp v2
The best way to build MCP servers in Python.
pip install veil-mcpQuick start — MCP server (Claude Desktop / Cursor)
from veil_mcp import tool, MCPServer
@tool()
def turn_off_light():
"""Turn off the room light."""
return "Light is off."
@tool(tags=["hardware"], timeout=5.0)
def toggle_relay(relay: int, state: bool) -> str:
"""Toggle a relay on or off.
Args:
relay (int): Relay number 1-4.
state (bool): True for ON, False for OFF.
"""
return f"Relay {relay} is {'ON' if state else 'OFF'}."
MCPServer(name="my-agent").run() # stdio — for Claude Desktop / Cursor
MCPServer(name="my-agent").run_http() # HTTP+SSE on port 8000Quick start — LLM adapter
from veil_mcp import tool, LLMAdapter
@tool()
def get_time() -> str:
"""Get the current time."""
from datetime import datetime
return datetime.now().strftime("%I:%M %p")
adapter = LLMAdapter(provider="anthropic") # or openai, groq, ollama, mock
response = adapter.run("what time is it")
print(response.final_message)Install
pip install "veil-mcp[anthropic]" # Claude
pip install "veil-mcp[openai]" # GPT / Groq / Ollama
pip install "veil-mcp[all]" # everythingCLI
veil-mcp list # list all tools
veil-mcp schema --fmt mcp # dump MCP schemas
veil-mcp inspect TOOL_NAME # inspect a tool
veil-mcp call TOOL_NAME '{"key":"v"}'# call a tool directly
veil-mcp run server.py # run as stdio MCP server
veil-mcp serve server.py --port 8000 # run as HTTP serverConnect to Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"my-agent": {
"command": "python",
"args": ["path/to/server.py"]
}
}
}Providers
Provider | Install | Key |
Anthropic |
|
|
OpenAI |
|
|
Groq |
|
|
Ollama |
| none (local) |
Mock | none | none |
Made by Shivank for Hack Club Veil · 2026
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/shivankpndy/veil-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server