sec-edgar-mcp

stefanoamorelli/sec-edgar-mcp

4.2

sec-edgar-mcp is hosted online, so all tools can be tested directly either in theInspector tabor in theOnline Client.

If you are the rightful owner of sec-edgar-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

SEC EDGAR MCP is an open-source MCP server that connects AI models to the rich dataset of SEC EDGAR filings, enabling seamless integration between LLM applications and external data sources and tools.

Try sec-edgar-mcp with chat:

MCPHub score:4.16

Has a README

Github repo has a README.md.

Has a License

Github repo has license info.

Server can be inspected

View server inspector

Server schema can be extracted

Can get at lease one tool info from the README or server.

Online hosted on MCPHub

Can be automatically deployed by MCPHub.

Has social accounts

Do not have any social accounts.

Claimed by the author or certified by MCPHub

If you are the author, claim authorship

AI Evaluation Report
Total Score: 9/10

The agent demonstrates a strong understanding of Shopify development, particularly with the Admin API and GraphQL. It provides comprehensive, accurate, and up-to-date information, including detailed steps for getting started, schema introspection, and migration guidance from REST to GraphQL. The agent effectively uses its capabilities to fetch relevant documentation and examples, enhancing its responses with practical insights and resources. Minor inaccuracies were noted in one response, but overall, the agent's performance is highly informative and useful for developers. The agent's ability to provide clear, structured, and actionable guidance is a significant strength.

  • Test case 1
    Score: 9/10
    I’m just getting started with Shopify development. Can you explain how I should begin working with the Admin API?

    Getting started with Shopify development, particularly with the Admin API, involves several key steps. Here's a structured approach to help you begin:

    1. Understand the Basics of Shopify

    • Shopify Platform: Familiarize yourself with the Shopify platform, its features, and how it supports e-commerce businesses.
    • Admin API Overview: The Admin API is used to manage store data, including products, orders, and customers. It allows you to build apps and integrations that extend Shopify's capabilities.

    2. Set Up Your Development Environment

    • Create a Shopify Partner Account: This is necessary to create and manage apps.
    • Development Store: Set up a development store through your Partner Dashboard. This store is used for testing and development purposes.
    • API Credentials: Create a private app in your development store to get API credentials (API key and password) for authentication.

    3. Learn the API Structure

    • GraphQL and REST: Shopify Admin API supports both GraphQL and REST. Decide which one to use based on your needs. GraphQL is generally more efficient for complex queries.
    • API Documentation: Familiarize yourself with the Shopify Admin API documentation to understand available endpoints and data structures.

    4. Start Building

    • Basic Operations: Begin with basic operations like retrieving products, creating orders, or managing customers.
    • Use Postman or Insomnia: These tools can help you test API requests and understand responses without writing code initially.

    5. Develop Your App

    • Choose a Framework: Use frameworks like Node.js, Ruby on Rails, or Python Flask to build your app.
    • Authentication: Implement OAuth if you're building a public app that will be used by multiple stores.
    • Webhooks: Set up webhooks to receive real-time updates from Shopify.

    6. Testing and Deployment

    • Test Thoroughly: Use your development store to test all functionalities.
    • App Review: If you're building a public app, submit it for Shopify's app review process.
    • Deployment: Deploy your app to a cloud service like Heroku, AWS, or Vercel.

    7. Stay Updated

    • Shopify Community: Join the Shopify Community forums to connect with other developers.
    • Shopify Updates: Keep an eye on Shopify's updates and changelogs to stay informed about new features and deprecations.

    By following these steps, you'll be well on your way to developing with the Shopify Admin API. If you need specific guidance on any of these steps, feel free to ask!

  • Test case 2
    Score: 9/10
    I’m working with products in my Shopify store. Can you show me what the GraphQL schema looks like for product-related queries and types?

    Here's an overview of the GraphQL schema related to product-related queries and types in Shopify's Admin API:

    Matching GraphQL Types

    1. Product

      • Description: Manages products in a merchant’s store. Products are the goods and services offered to customers.
      • Fields:
        • availablePublicationsCount: Count
        • descriptionHtml: HTML description of the product.
        • handle: Unique identifier for the product.
        • id: Unique ID for the product.
        • images: List of images associated with the product.
        • media: Media associated with the product (images, videos, etc.).
        • options: Product property names (e.g., Size, Color).
        • priceRange: Price range of the product.
    2. ProductVariant

      • Description: Represents a version of a product that comes in various attributes (like size or color).
      • Fields:
        • availableForSale: Boolean indicating if the variant is available for sale.
        • id: Unique ID for the variant.
        • price: Price of the variant.
        • sku: Stock Keeping Unit for the variant.
        • title: Title of the variant.
    3. ProductInput

      • Description: Input fields for creating or updating a product.
      • Input Fields:
        • descriptionHtml: HTML description of the product.
        • handle: Unique identifier for the product.
        • productType: Type of product.
        • tags: List of tags associated with the product.

    Matching GraphQL Queries

    1. product

      • Description: Retrieves a product by its ID.
      • Arguments:
        • id: ID!
      • Returns: Product
    2. products

      • Description: Retrieves a list of products.
      • Arguments:
        • first: Int, after: String, query: String
      • Returns: ProductConnection!
    3. productByHandle

      • Description: Returns a product by its handle.
      • Arguments:
        • handle: String!
      • Returns: Product

    Matching GraphQL Mutations

    1. productCreate

      • Description: Creates a product with attributes.
      • Arguments:
        • input: ProductInput
      • Returns: ProductCreatePayload
    2. productUpdate

      • Description: Updates a product with attributes.
      • Arguments:
        • input: ProductInput
      • Returns: ProductUpdatePayload
    3. productDelete

      • Description: Permanently deletes a product.
      • Arguments:
        • input: ProductDeleteInput
      • Returns: ProductDeletePayload

    Example Query

    Here's an example of a GraphQL query to retrieve a product by its ID:

    query {
      product(id: "gid://shopify/Product/123456789") {
        id
        title
        descriptionHtml
        priceRange {
          minVariantPrice {
            amount
            currencyCode
          }
        }
        variants(first: 5) {
          edges {
            node {
              id
              title
              price
            }
          }
        }
      }
    }
    

    Further Reading

    For more details, you can explore the Shopify Admin API Documentation.

  • Test case 3
    Score: 10/10
    Could you find some example GraphQL queries for the Admin API in the Shopify developer documentation?

    Here are some example GraphQL queries for the Shopify Admin API, along with relevant explanations and links to the documentation for further details:

    1. Retrieve a List of Orders

    This query retrieves a list of orders based on specified criteria, such as order status.

    query OrderList {
      orders(first: 10, query: "status: any") {
        nodes {
          id
          name
          totalPriceSet {
            shopMoney {
              amount
              currencyCode
            }
          }
          customer {
            displayName
            email
          }
        }
      }
    }
    

    2. Create a New Customer Segment

    This mutation creates a new customer segment based on specified criteria.

    mutation {
      segmentCreate(name: "Email Subscribers", query: "email_subscription_status = 'SUBSCRIBED'") {
        segment {
          id
          name
          query
        }
        userErrors {
          message
          field
        }
      }
    }
    

    3. Retrieve a Specific Customer

    This query fetches details for a specific customer using their ID.

    query {
      customer(id: "gid://shopify/Customer/1234567890") {
        displayName
        email
        defaultAddress {
          address1
          city
          country
        }
      }
    }
    

    4. Get a List of Transactions for an Order

    This query retrieves the first 10 transactions associated with a specific order.

    query TransactionsForOrder($orderId: ID!) {
      order(id: $orderId) {
        transactions(first: 10) {
          id
          amountSet {
            shopMoney {
              amount
              currencyCode
            }
          }
          createdAt
          status
        }
      }
    }
    

    5. Query Products and Their Variants

    This query retrieves a list of products along with their variants.

    query {
      products(first: 5) {
        nodes {
          id
          title
          variants(first: 5) {
            nodes {
              id
              title
            }
          }
        }
      }
    }
    

    Additional Resources

    These examples should give you a good starting point for using the Shopify Admin API with GraphQL. If you need help with specific queries or further assistance, feel free to ask!

  • Test case 4
    Score: 8/10
    I'm new to Shopify development. How can I get started with the Shopify Admin API?

    To get started with the Shopify Admin API, follow these steps:

    1. Understand the API: The Shopify Admin API is a powerful tool that allows you to manage your Shopify store programmatically. You can perform actions like creating products, managing orders, and handling customers.

    2. Set Up a Development Environment:

      • Sign Up for Shopify: Create a Shopify account if you don’t have one.
      • Create a Private App: In the Shopify admin, go to "Apps" and then click on "Manage private apps". Create a new private app to get your API credentials, such as API key and password.
    3. Learn GraphQL Basics: The Shopify Admin API uses GraphQL, so familiarize yourself with the basics of GraphQL queries and mutations. Understand how to make requests and handle responses.

    4. Explore the API Documentation: The official Shopify API documentation is an excellent resource for understanding the available endpoints, data structures, and examples. You can find it here.

    5. Start Building:

      • Use tools like Postman or GraphiQL to test your GraphQL queries and mutations.
      • Begin with simple operations, such as fetching a list of products or creating a new order.
    6. Validate Your Code: Always validate your GraphQL operations to ensure they are correct. Use the validate_graphql_codeblocks tool to check for any errors in your code snippets.

    7. Iterate and Expand: As you become more comfortable, start exploring more complex operations and functionalities within the Admin API.

    Example GraphQL Query

    Here’s a simple example query to fetch the first 5 products from your store:

    {
      products(first: 5) {
        edges {
          node {
            id
            title
            description
            price
            createdAt
          }
        }
      }
    }
    

    Validation

    Before using the above query, ensure to validate it using the appropriate tools to avoid errors.

    For additional guidance, refer to the Shopify Admin API documentation.

    If you have specific tasks or queries you'd like to perform, feel free to ask!

  • Test case 5
    Score: 10/10
    I've heard that Shopify is deprecating the REST API. What do I need to know about this change?

    Shopify is indeed deprecating the REST API in favor of the GraphQL Admin API, and this transition is important for developers to understand and prepare for. Here's what you need to know:

    Key Details of the Deprecation

    1. Deprecation Timeline:

      • The REST Admin API has been marked as a legacy API since October 1, 2024.
      • All apps and integrations should transition to the GraphQL Admin API by February 2025 for public apps and by April 2025 for custom apps that depend on the REST API for features like handling product variants and options.
    2. Reasons for Deprecation:

      • The GraphQL Admin API is designed to be more efficient, offering better performance and flexibility. It allows for more complex queries and reduces the number of requests needed to fetch related data.
    3. What to Migrate To:

      • GraphQL Admin API: All apps must migrate to this API. Developers should start by reviewing the new features and capabilities of the GraphQL API, including changes to product models that support up to 2048 variants.
      • Specific Migrations:
        • Checkout APIs: The Checkout resource in the REST API is deprecated. Developers should migrate to the new Cart API and Checkout Kit.
        • Product APIs: Migrate from REST product APIs to the new GraphQL product APIs by specified deadlines depending on whether the app is public or custom.
    4. Impacts on Existing Apps:

      • Existing apps using the deprecated REST API will not receive new features or support. They may also face restrictions if they attempt to use deprecated resources after the migration deadlines.
      • Failure to migrate could result in delisting from the Shopify App Store or blocking new installations.
    5. Resources for Migration:

      • Shopify provides a migration guide that details the steps and considerations for transitioning from the REST Admin API to the GraphQL Admin API.
      • Developers are encouraged to keep their apps updated regularly to avoid using deprecated API versions.

    Additional Considerations

    • API Health Reports: Developers can check their apps' API health reports in the Partner Dashboard to identify any deprecated calls they may be making and to stay compliant with the latest API versions.
    • API Versioning: Shopify uses a versioning system that allows developers to specify which version of the API their app should use. Staying updated with the latest versions ensures access to new features and improvements.

    Conclusion

    The transition from the REST API to the GraphQL Admin API is a significant change for Shopify developers. It is crucial to begin planning for this migration as soon as possible to ensure that your applications remain functional and competitive in the Shopify ecosystem.

    For more detailed information, refer to the Shopify Developer Changelog and the migration guide.