Back to Home
koki7o icon

mcp-framework

Verified Safe

by koki7o

Overview

A Rust framework implementing the Model Context Protocol for building production-ready MCP servers, clients, and intelligent AI agents that integrate with LLMs for tool use and browser automation.

Installation

Run Command
cargo run --example server_with_tools

Environment Variables

  • ANTHROPIC_API_KEY
  • OPENAI_API_KEY

Security Notes

The `stdio` connector utilizes `std::process::Command` to spawn subprocesses. While the provided examples use trusted commands (e.g., `npx @playwright/mcp`), custom or untrusted command strings passed to `McpClient::new` or `MCPServerConfig::from_command` can lead to arbitrary command execution. Developers must ensure that inputs configuring `stdio` connections are validated and originate from trusted sources. The web-based Inspector (debug UI) binds to `127.0.0.1:8123` by default, limiting external network exposure. However, it exposes API endpoints (`/api/call-tool`) that allow interactive execution of registered tools, which could be abused by a local user or another process if tools have unintended side effects or vulnerabilities. Hardcoded API keys or sensitive credentials are not present; the framework correctly uses environment variables.

Similar Servers

Stats

Interest Score47
Security Score7
Cost ClassHigh
Avg Tokens1000
Stars11
Forks0
Last Update2025-12-05

Tags

AI AgentsLLM IntegrationMCP ServerRustTool Use