Close Menu
    Trending
    • Bots Are Taking Over the Internet—And They’re Not Asking for Permission
    • Data Analysis Lecture 2 : Getting Started with Pandas | by Yogi Code | Coding Nexus | Aug, 2025
    • TikTok to lay off hundreds of UK content moderators
    • People Really Only Care About These 3 Things at Work — Do You Offer Them?
    • Can Machines Really Recreate “You”?
    • Meet the researcher hosting a scientific conference by and for AI
    • Current Landscape of Artificial Intelligence Threats | by Kosiyae Yussuf | CodeToDeploy : The Tech Digest | Aug, 2025
    • Data Protection vs. Data Privacy: What’s the Real Difference?
    AIBS News
    • Home
    • Artificial Intelligence
    • Machine Learning
    • AI Technology
    • Data Science
    • More
      • Technology
      • Business
    AIBS News
    Home»Machine Learning»MCPConn: The Universal AI Model Connector for Python Applications | by Gaurav Chauhan | Jun, 2025
    Machine Learning

    MCPConn: The Universal AI Model Connector for Python Applications | by Gaurav Chauhan | Jun, 2025

    Team_AIBS NewsBy Team_AIBS NewsJune 23, 2025No Comments2 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    MCPConn is a strong Python library that serves as a bridge between your functions and numerous AI fashions by the Model Context Protocol (MCP). Whether or not you’re constructing a chatbot, an AI-powered instrument, or integrating AI capabilities into your present software, MCPConn offers a streamlined, safe, and standardized approach to work together with AI fashions.

    MCPConn acts as a high-level shopper library that simplifies the combination of AI fashions into Python functions. It implements the Mannequin Context Protocol (MCP), which offers a standardized approach to talk with completely different AI suppliers like Anthropic and OpenAI. Consider it as a common adapter for AI — as an alternative of coping with completely different APIs for every supplier, you get a constant interface that works throughout all of them.

    • Change between AI suppliers (Anthropic, OpenAI) with minimal code adjustments
    • Constant interface whatever the underlying AI mannequin
    • Future-proof your software towards supplier adjustments
    • STDIO transport for native improvement and testing
    • Server-Despatched Occasions (SSE) for real-time streaming
    • Streamable HTTP for traditional net integration

    Notice: OpenAI solely helps distant MCP endpoints

    • Complete guardrails system for content material filtering
    • PII detection and masking
    • Injection assault prevention
    • Customized phrase filtering and response blocking
    • Constructed-in dialog historical past monitoring
    • Session administration with distinctive dialog IDs
    • Persistent context throughout a number of interactions
    • Constructed with asyncio for high-performance, non-blocking I/O
    • Environment friendly dealing with of concurrent requests
    • Streaming response help
    • Standardized approach to expose exterior instruments to AI fashions
    • Constant instrument utilization throughout completely different suppliers
    • Simple integration of customized instruments and APIs
    pip set up mcpconn
    import asyncio
    from mcpconn import MCPClient

    async def major():
    # Set your OpenAI API key within the atmosphere earlier than working
    # export OPENAI_API_KEY="your-key-here"

    # Hook up with a distant MCP server utilizing OpenAI and streamable_http transport
    # NOTE: OpenAI solely helps distant MCP endpoints (not native/stdio/localhost). See: https://platform.openai.com/docs/guides/tools-remote-mcp
    shopper = MCPClient(llm_provider="openai")
    await shopper.join("https://mcp.deepwiki.com/mcp", transport="streamable_http")

    # Ship a message and get a response
    response = await shopper.question("give me record of instruments supplied")
    print(f"AI: {response}")

    # Disconnect from the server
    await shopper.disconnect()

    if __name__ == "__main__":
    asyncio.run(major())



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleTesla robotaxi service rolls out in ‘low-key’ Texas launch
    Next Article Tesla Debuts Self-Driving Robotaxis For the First Time
    Team_AIBS News
    • Website

    Related Posts

    Machine Learning

    Data Analysis Lecture 2 : Getting Started with Pandas | by Yogi Code | Coding Nexus | Aug, 2025

    August 22, 2025
    Machine Learning

    Current Landscape of Artificial Intelligence Threats | by Kosiyae Yussuf | CodeToDeploy : The Tech Digest | Aug, 2025

    August 22, 2025
    Machine Learning

    Optimizing ML Costs with Azure Machine Learning | by Joshua Fox | Aug, 2025

    August 22, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Bots Are Taking Over the Internet—And They’re Not Asking for Permission

    August 22, 2025

    I Tried Buying a Car Through Amazon: Here Are the Pros, Cons

    December 10, 2024

    Amazon and eBay to pay ‘fair share’ for e-waste recycling

    December 10, 2024

    Artificial Intelligence Concerns & Predictions For 2025

    December 10, 2024

    Barbara Corcoran: Entrepreneurs Must ‘Embrace Change’

    December 10, 2024
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    Most Popular

    One $28, Under-Appreciated Microsoft App Could Save You Thousands of Dollars

    March 15, 2025

    Tech That Prevents Chemotherapy-Induced Nerve Damage

    May 30, 2025

    How to Make Money Online from Home | by Josephgodwin | Dec, 2024

    December 10, 2024
    Our Picks

    Bots Are Taking Over the Internet—And They’re Not Asking for Permission

    August 22, 2025

    Data Analysis Lecture 2 : Getting Started with Pandas | by Yogi Code | Coding Nexus | Aug, 2025

    August 22, 2025

    TikTok to lay off hundreds of UK content moderators

    August 22, 2025
    Categories
    • AI Technology
    • Artificial Intelligence
    • Business
    • Data Science
    • Machine Learning
    • Technology
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2024 Aibsnews.comAll Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.