Close Menu
    Trending
    • Credit Risk Scoring for BNPL Customers at Bati Bank | by Sumeya sirmula | Jul, 2025
    • The New Career Crisis: AI Is Breaking the Entry-Level Path for Gen Z
    • Musk’s X appoints ‘king of virality’ in bid to boost growth
    • Why Entrepreneurs Should Stop Obsessing Over Growth
    • Implementing IBCS rules in Power BI
    • What comes next for AI copyright lawsuits?
    • Why PDF Extraction Still Feels LikeHack
    • GenAI Will Fuel People’s Jobs, Not Replace Them. Here’s Why
    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

    Credit Risk Scoring for BNPL Customers at Bati Bank | by Sumeya sirmula | Jul, 2025

    July 1, 2025
    Machine Learning

    Why PDF Extraction Still Feels LikeHack

    July 1, 2025
    Machine Learning

    🚗 Predicting Car Purchase Amounts with Neural Networks in Keras (with Code & Dataset) | by Smruti Ranjan Nayak | Jul, 2025

    July 1, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Credit Risk Scoring for BNPL Customers at Bati Bank | by Sumeya sirmula | Jul, 2025

    July 1, 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

    10 Jupyter Notebook Plugins That Significantly Improve Productivity | by ZHEMING XU | Mar, 2025

    March 29, 2025

    Why Apple is stuck in tariff tussle

    April 19, 2025

    Understanding LoRA for Efficient LLM Transformers Fine-Tuning | by Xiang | May, 2025

    May 9, 2025
    Our Picks

    Credit Risk Scoring for BNPL Customers at Bati Bank | by Sumeya sirmula | Jul, 2025

    July 1, 2025

    The New Career Crisis: AI Is Breaking the Entry-Level Path for Gen Z

    July 1, 2025

    Musk’s X appoints ‘king of virality’ in bid to boost growth

    July 1, 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.