{"id":28863128,"url":"https://github.com/asheint/simple-ai-agent","last_synced_at":"2026-05-02T23:32:40.579Z","repository":{"id":300071408,"uuid":"1005119096","full_name":"asheint/simple-ai-agent","owner":"asheint","description":"Python AI agent using LangChain, LangGraph, and MCP for web scraping with Firecrawl integration","archived":false,"fork":false,"pushed_at":"2025-06-19T18:09:30.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-19T18:58:37.986Z","etag":null,"topics":["ai-agent","automation","chatbot","langchain","langgraph","mcp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asheint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-19T17:43:33.000Z","updated_at":"2025-06-19T18:09:33.000Z","dependencies_parsed_at":"2025-06-19T18:58:43.368Z","dependency_job_id":"b498d971-366a-4aad-a0b2-4839cba60570","html_url":"https://github.com/asheint/simple-ai-agent","commit_stats":null,"previous_names":["asheint/simple-ai-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asheint/simple-ai-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheint%2Fsimple-ai-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheint%2Fsimple-ai-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheint%2Fsimple-ai-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheint%2Fsimple-ai-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asheint","download_url":"https://codeload.github.com/asheint/simple-ai-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asheint%2Fsimple-ai-agent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260898761,"owners_count":23079263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","automation","chatbot","langchain","langgraph","mcp"],"created_at":"2025-06-20T07:01:59.350Z","updated_at":"2025-10-26T10:32:16.527Z","avatar_url":"https://github.com/asheint.png","language":"Python","funding_links":["https://buymeacoffee.com/asheint"],"categories":[],"sub_categories":[],"readme":"# Simple AI Agent\n\nA Python-based AI assistant that can scrape websites, crawl pages, and extract data using Firecrawl tools through the Model Context Protocol (MCP). Built with LangChain, LangGraph, and powered by OpenAI's GPT-4.\n\n## 🚀 Features\n\n- **Web Scraping**: Scrape websites and extract data using Firecrawl\n- **Interactive Chat**: Command-line interface for conversing with the AI agent\n- **MCP Integration**: Uses Model Context Protocol for seamless tool communication\n- **OpenAI Integration**: Powered by GPT-4 for intelligent responses\n- **ReAct Agent**: Built with LangGraph's ReAct agent pattern for step-by-step reasoning\n- **Async Support**: Fully asynchronous implementation for better performance\n\n## 📋 Requirements\n\n- Python 3.12+\n- Node.js (for Firecrawl MCP server)\n- OpenAI API key\n- Firecrawl API key\n\n## 🛠️ Installation\n\n1. **Clone the repository:**\n\n```bash\ngit clone https://github.com/asheint/simple-ai-agent.git\ncd simple-ai-agent\n```\n\n2. **Install dependencies using uv:**\n\n```bash\n# Install uv if you haven't already\npip install uv\n\n# Install project dependencies\nuv sync\n```\n\n3. **Install Firecrawl MCP server:**\n\n```bash\nnpm install -g firecrawl-mcp\n```\n\n4. **Set up environment variables:**\n   Create a `.env` file in the project root:\n\n```env\nOPENAI_API_KEY=your_openai_api_key_here\nFIRECRAWL_API_KEY=your_firecrawl_api_key_here\n```\n\n## 🏃‍♂️ Usage\n\nRun the agent:\n\n```bash\npython main.py\n```\n\nThe agent will start and display available tools. You can then interact with it by typing commands. Type `exit` to quit.\n\n### Example Interactions\n\n- \"Scrape the homepage of example.com\"\n- \"Extract all links from https://news.ycombinator.com\"\n- \"Crawl a website and get structured data from all pages\"\n- \"Get the main content from a blog post\"\n\n## 📁 Project Structure\n\n```\nsimple-ai-agent/\n├── main.py              # Main application entry point\n├── pyproject.toml       # Project dependencies and metadata\n├── .env                 # Environment variables (API keys)\n├── .python-version      # Python version specification (3.12)\n├── .gitignore          # Git ignore rules\n├── uv.lock             # Dependency lock file\n└── README.md           # This file\n```\n\n## 🔧 Dependencies\n\n- **langchain-mcp-adapters** (\u003e=0.1.7): MCP integration for LangChain\n- **langchain-openai** (\u003e=0.3.24): OpenAI integration for LangChain\n- **langgraph** (\u003e=0.4.8): Graph-based agent framework\n- **python-dotenv** (\u003e=1.1.0): Environment variable management\n\n## ⚙️ Configuration\n\nThe agent is configured with:\n\n- **Model**: GPT-4 with temperature 0 for deterministic responses\n- **Tools**: Firecrawl MCP tools for web scraping\n- **Input Limit**: 175,000 characters per user input\n- **Connection**: Stdio-based communication with MCP server\n\n## 🏗️ Architecture\n\nThe project uses a modern Python stack:\n\n1. **uv**: Fast Python package installer and resolver\n2. **LangChain**: Framework for building LLM applications\n3. **LangGraph**: Library for building stateful, multi-actor applications with LLMs\n4. **MCP (Model Context Protocol)**: Protocol for connecting AI models with external tools\n5. **Firecrawl**: Web scraping service with intelligent content extraction\n\n## 🤝 Contributing\n\nContributions are welcome! Here's how you can help:\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Make your changes\n4. Run tests and ensure code quality\n5. Commit your changes (`git commit -m 'Add some amazing feature'`)\n6. Push to the branch (`git push origin feature/amazing-feature`)\n7. Open a Pull Request\n\n### Development Setup\n\n```bash\n# Clone your fork\ngit clone https://github.com/yourusername/simple-ai-agent.git\ncd simple-ai-agent\n\n# Install development dependencies\nuv sync\n\n# Make your changes and test\npython main.py\n```\n\n## 📝 License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## 🐛 Issues\n\nFound a bug or have a feature request? Please open an issue on the [GitHub Issues](https://github.com/asheint/simple-ai-agent/issues) page.\n\n## 🌟 Acknowledgments\n\n- [LangChain](https://github.com/langchain-ai/langchain) for the LLM framework\n- [LangGraph](https://github.com/langchain-ai/langgraph) for the agent architecture\n- [Firecrawl](https://firecrawl.dev/) for web scraping capabilities\n- [OpenAI](https://openai.com/) for the GPT-4 model\n\n## 📚 Learn More\n\n- [Model Context Protocol Documentation](https://modelcontextprotocol.io/)\n- [LangChain Documentation](https://docs.langchain.com/)\n- [LangGraph Documentation](https://langchain-ai.github.io/langgraph/)\n- [Firecrawl Documentation](https://docs.firecrawl.dev/)\n\n---\n\n## ☕ Buy Me a Coffee\n\nIf you found this project helpful or inspiring, you can support my work here:  \n[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-%23FFDD00.svg?\u0026style=flat-square\u0026logo=buy-me-a-coffee\u0026logoColor=black)](https://buymeacoffee.com/asheint)\n\n⭐ **Star this repository if you find it helpful!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasheint%2Fsimple-ai-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasheint%2Fsimple-ai-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasheint%2Fsimple-ai-agent/lists"}