Back to Home
gauravsingh8026 icon

fastmcp-example

Verified Safe

by gauravsingh8026

Overview

Integrate Model Context Protocol (MCP) with LangChain and LangGraph to build AI agent workflows by exposing a variety of custom and pre-defined tools.

Installation

Run Command
python server.py

Environment Variables

  • TAVILY_API_KEY
  • OPENAI_API_KEY
  • HTTP_TIMEOUT_SECONDS
  • CALENDLY_CLIENT_ID
  • CALENDLY_CLIENT_SECRET
  • CALENDLY_REDIRECT_URI
  • FASTAPI_PORT
  • MCP_SERVER_PORT
  • ENVIRONMENT
  • MCP_SERVER_URL

Security Notes

The `http_request` tool in `server.py` and the `_make_http_request` function in `config/custom_tools.py` enable making arbitrary HTTP requests. If an LLM's input can be manipulated via prompt injection, this could lead to Server-Side Request Forgery (SSRF) or unauthorized access to internal network resources. This is an inherent risk in tool-using AI agents. OAuth tokens for Calendly are stored locally in `data/calendly_tokens.json`. The code does not use `eval` or `exec` directly, and relies on environment variables for sensitive API keys.

Similar Servers

Stats

Interest Score10
Security Score7
Cost ClassMedium
Avg Tokens1000
Stars2
Forks1
Last Update2025-12-11

Tags

MCPLangChainLangGraphAI AgentsToolsPythonWorkflow Automation